I have a rails api that creates an embedded document into another document in my meteor application using mongoid. How can I query the embedded documents with meteor?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Once you’ve written to the mongo database from your rails world via mongoid, assuming you’ve correctly pointed your Meteor app at this mongo database, simply set up a publication and subscription like any other meteor collection. Then use Minimongo to query the documents. Because it sounds like this is a subdocument, note that per the docs, dot-notation is still a bit sketchy for querying sub documents.
Here is an explanation of Minimongo from the docs: