If The Address Data Is Frequently Retrieved With The Name #193
If the address data is frequently retrieved with the name information, how will you modify the following schema representing one to one relationship with referencing?</p> <pre><code class="language-text">{ _id: "joe", name: "Joe Bookreader" } { patron_id: "joe", street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" }</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs112 MongoDB. It can also be found in gs gs112 Data Models - Data Model Examples and Patterns - Quiz No.1.
If the address data is frequently retrieved with the name information, how will you modify the following schema representing one to one relationship with referencing?
{ _id: "joe", name: "Joe Bookreader" } { patron_id: "joe", street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" }
{ _id: "joe", name: "Joe Bookreader", address: { street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" } }
{ _id: "joe", name: "Joe Bookreader", address-> { street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" } }
{ _id: "joe", name: "Joe Bookreader", address:: { street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" } }
All of the mentioned
Similar question(s) are as followings:
Online Quizzes of gs112 MongoDB
GridFS, BSON Datatype and Administration Concepts - BSON - Quiz No.1
gs gs112 MongoDB
Online Quizzes