Answers for "one to many mapping in mongodb"

0

one to many mapping in mongodb

// patron document
{
   _id: "joe",
   name: "Joe Bookreader"
}

// address documents
{
   patron_id: "joe", // reference to patron document
   street: "123 Fake Street",
   city: "Faketon",
   state: "MA",
   zip: "12345"
}

{
   patron_id: "joe",
   street: "1 Some Other Street",
   city: "Boston",
   state: "MA",
   zip: "12345"
}
Posted by: Guest on December-15-2020

Code answers related to "one to many mapping in mongodb"

Browse Popular Code Answers by Language