In the last video “Understanding JSON” the representation of data storage in the “cast” field of the Array type is written “cast”: [“Leonardo DiCaprio”, “Kate Winslet”, “Kathy Bates”]
But the representation of this field in MongoDB is as follows:
cast:
0: “Leonardo DiCaprio”
1: “Kate Winslet”
2: “Kathy Bates”
My question is:
“In an array insert action, do I enter” [“and items separated by commas or indices” 0: Leonardo “,” 1: Kate “,” 2: Kathy "?