I want to get all documents from users that have a source of “twitter”.
So the user’s table has source.
Getting all users that have source: “twitter” and then sending that list of userIds to find() on the purchases table does not seem very efficient.
The only other option I can think of is to copy the user’s source field to all the purchase documents, which does not feel very elegant, so I’m sure there’s a better way.