Activity model with dynamic reference

30 views
Skip to first unread message

Mauricio Mercado

unread,
Aug 20, 2013, 7:25:00 PM8/20/13
to mongoo...@googlegroups.com

Hello  on mongoose #1003 Ive found a comment that appeals more to what Im trying to do with mongoose (using v 3.6.15).

I want to create an activity model in order to show a timeline kind of thing with my application, but I don't know exactly how to dynamically reference a collection in a mongoose schema.

In what I have so far the actor is always a user, but the _object can be a user or a post.

How can I solve this using dynamic references?

How would I populate this reference?

Reply all
Reply to author
Forward
0 new messages