How do I grab all articles with comments? I have:
class Article
include Mongoid::Document
embeds_many :comments
end
class Comment
include Mongoid::Document
embedded_in :article
end
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.
At the moment. This seems to work:
Am I using the
$existsdirective correctly for this context?