How best to model documents with related user data?

Hello!

I am trying to figure out the best way to store documents have associated user-specific settings (e.g. isFavorite, lastAccessed).

I would like the to allow users to filter and sort their content based on these settings. I have looked into parent/child and nested models and both feel awkward. Parent/Child is easy to update and filter by but I can't make it sort (e.g. "Show me all of my content ordered by the time I last accessed it"). Nested updates seem complicated.

Any tips?

Thanks!

did u explore array of objects (not nested objects)?