I need to add an array of links to some documents—and I’m not sure how to approach this. Some document might have zero links, others might have up to two or even more links. Each link will have three values: ‘label’, ‘title’ and ‘url’. Is any of the following approaches preferable or is there a better way? Thanks!
The alternative would be a nightmare. Your first option isn’t bad, but it looks like you need to look into adding another collection instead of nesting. This would make it a lot easier.
I think I’d go with a separate collection as well. Use the id of the parent to tie your “children” links to the “parent” document. And just to echo what @tdhz77 said: the alternative is a nightmare, one I personally experienced a long time ago!