I would like to create a object with the following structure. Is it possible to do the same via datacollection?. I may add items under each id (movies, tv, person) later.
data = { ‘movie’: [], ‘tv’: [], ‘person’: []};
I like to bind the above datacollection with a multiview by specifying the key (movie, tv, person)
You can add any kind of JS objects to the data collection, but it will be counted as a single object, with a single id. So you will not be able to fetch subobjects by their id
Of course, it is possible to write a code which will iterate through collection and fetch the necessary data, but it will be less performant than a solution with separate data collections