Questions tagged [subdocument]

Concept in document-oriented databases, where a field in document is a document in itself.

Concept in document-oriented databases, where a field in document is a document in itself.

Example document as JSON, where address is a subdocument:

{
    name: "Snake",
    address: {
       street: "742 Evergreen Terrace",
       city: "Springfield"
    }
}
288 questions
-1
votes
2 answers

How can I update a subdocument in MongoDB?

Code created in Mongoose to update a subdocument was not working. So I tried to update the subdocument within the Mongo Shell. This is the document (location) and subdocument (review): { "_id" : ObjectId("56d8c73314fbc7e702cfb8c4"), "name" :…
KyleRiggen
  • 121
  • 7
-1
votes
1 answer

MongoDB how do I make an array with custom keys containing subdocument

Alright so using Python and MongoDB I am trying to embed a subdocument within an array with a custom key value in the array. I was playing around with all sorts of different ways to do this and I couldn't figure out what I was doing wrong so I…
user3586062
  • 1,289
  • 2
  • 10
  • 12
-2
votes
1 answer

Laravel MongoDB unset use?

{ "_id": { "$oid": "60b609d6bd846108dc86433d" }, "il": "Siirt", "ilce": "merkez", "ada": 466, "parsel": 1, "pafta": "M47-B-09-B-3-A", "tkgmkodu": "106478407", "tkgmeskikodu": [], "nitelik":…
DUPi
  • 11
1 2 3
19
20