Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "_id" : ObjectId("4f7486c6318ca0fafa7761d0"),
- "columnNames" : [ "addresses_id" ],
- "columnValues" : [ "169e2d61-ce39-4bca-8300-185487df7119" ],
- "rows" : {
- "-387062339" : {
- "table" : "User_Address",
- "columnNames" : [ "User_id", "nick" ],
- "columnValues" : [ "f11e01e8-7c2f-4795-81dc-94de7c4ba246", "home" ]
- }
- },
- "table" : "User_Address"
- }
- //example 2: closer to how entities are stored
- {
- "_id" : ObjectId("4f7486c6318ca0fafa7761d0"),
- "table" : "User_Address",
- "columnNames" : [ "addresses_id" ],
- "columnValues" : [ "169e2d61-ce39-4bca-8300-185487df7119" ],
- "rows" : {
- "9d2386c6318ca0fafa32867ae" : {
- "User_id": "f11e01e8-7c2f-4795-81dc-94de7c4ba246",
- "nick": "home"
- }
- }
- }
- //example 3: considering that MongoDB collections == tables
- // in collection "User_Address"
- {
- "_id" : ObjectId("4f7486c6318ca0fafa7761d0"),
- "addresses_id": "169e2d61-ce39-4bca-8300-185487df7119",
- "rows" : {
- "9d2386c6318ca0fafa32867ae" : {
- "User_id": "f11e01e8-7c2f-4795-81dc-94de7c4ba246",
- "nick": "home"
- }
- }
- }
Add Comment
Please, Sign In to add comment