M201 2.8 video creating index at different times

in the video the createIndex of several fields is occurring in a single statement - - and attempting to use 2 arrays throws an error.

one can create index on different fields at different points in time I suppose in separate statements… yes? and if one attempted to make a 2nd array field an index when another array field was already indexed, this statement I assume the same error would be thrown…

Hi @James_58604,

Please refer to the examples mentioned in the documentation link below to understand this concept:

Meanwhile, we can also spin up a node and try the possible scenarios to understand the concept.

Please let me know, if you have any questions.