I noticed that in the Mongoid relations documentation that they refer to both has_one and embeds_one. What is the difference between these two things?
I noticed that in the Mongoid relations documentation that they refer to both has_one
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.
The documents are on differents collections, with the relation
has_one.Otherwise, a parent document has
embeds_onechild document on his same collection.You can take a look to http://www.slideshare.net/mdirolf/mongodb-how-it-works
I wait help you!
Regards!