Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Sep 21st, 2018 62 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. {
  2.     "_id" : ObjectId("4f7486c6318ca0fafa7761d0"),
  3.     "columnNames" : [ "addresses_id" ],
  4.     "columnValues" : [ "169e2d61-ce39-4bca-8300-185487df7119" ],
  5.     "rows" : {
  6.         "-387062339" : {
  7.             "table" : "User_Address",
  8.             "columnNames" : [ "User_id", "nick" ],
  9.             "columnValues" : [ "f11e01e8-7c2f-4795-81dc-94de7c4ba246", "home" ]
  10.          }
  11.     },
  12.     "table" : "User_Address"
  13. }  
  14.  
  15. //example 2: closer to how entities are stored
  16. {
  17.     "_id" : ObjectId("4f7486c6318ca0fafa7761d0"),
  18.     "table" : "User_Address",
  19.     "columnNames" : [ "addresses_id" ],
  20.     "columnValues" : [ "169e2d61-ce39-4bca-8300-185487df7119" ],
  21.     "rows" : {
  22.         "9d2386c6318ca0fafa32867ae" : {
  23.             "User_id": "f11e01e8-7c2f-4795-81dc-94de7c4ba246",
  24.             "nick": "home"
  25.          }
  26.     }
  27. }  
  28.  
  29. //example 3: considering that MongoDB collections == tables
  30. // in collection "User_Address"
  31. {
  32.     "_id" : ObjectId("4f7486c6318ca0fafa7761d0"),
  33.     "addresses_id": "169e2d61-ce39-4bca-8300-185487df7119",
  34.     "rows" : {
  35.         "9d2386c6318ca0fafa32867ae" : {
  36.             "User_id": "f11e01e8-7c2f-4795-81dc-94de7c4ba246",
  37.             "nick": "home"
  38.          }
  39.     }
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top