Guest User

Untitled

a guest
Feb 22nd, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //ORIGINAL DOCUMENT
  2. //=================
  3.     {
  4.       "_id": "aramintha",
  5.       "name": "Aramintha",
  6.       "rarity": 5,
  7.       "classType": "mage",
  8.       "element": "fire",
  9.       (...),//other properties
  10.       "relations": [
  11.         {
  12.           "hero": "basar",
  13.           "relationType": "trust"
  14.         },
  15.         {
  16.           "hero": "rin",
  17.           "relationType": "trust"
  18.         },
  19.         {
  20.           "hero": "celeste",
  21.           "relationType": "trust"
  22.         },
  23.         {
  24.           "hero": "cartuja",
  25.           "relationType": "trust"
  26.         }
  27.       ],
  28.     }
  29.  
  30. //MY CURRENT AGGREGATE
  31. //=================
  32.     {
  33.       "_id": "aramintha",
  34.       "name": "Aramintha",
  35.       "rarity": 5,
  36.       "classType": "mage",
  37.       "element": "fire",
  38.       (...),//other properties
  39.       "relations": [
  40.         {
  41.           "_id": "basar",
  42.           "name": "Basar",
  43.         },
  44.         {
  45.           "_id": "cartuja",
  46.           "name": "Cartuja",
  47.         },
  48.         {
  49.           "_id": "celeste",
  50.           "name": "Celeste",
  51.         },
  52.         {
  53.           "_id": "rin",
  54.           "name": "Rin",
  55.         }
  56.       ],
  57.     }
  58.  
  59. //ANTHONY'S AGGREGATE
  60. //=================
  61.     {
  62.       "_id": "aramintha",
  63.       "relations": [
  64.         {
  65.           "hero": "basar",
  66.           "relationType": "trust",
  67.           "name": "Basar"
  68.         },
  69.         {
  70.           "hero": "rin",
  71.           "relationType": "trust",
  72.           "name": "Rin"
  73.         },
  74.         {
  75.           "hero": "celeste",
  76.           "relationType": "trust",
  77.           "name": "Celeste"
  78.         },
  79.         {
  80.           "hero": "cartuja",
  81.           "relationType": "trust",
  82.           "name": "Cartuja"
  83.         }
  84.       ],
  85.       "name": "Aramintha"
  86.     //other properties are now missing
  87.     }
Advertisement
Add Comment
Please, Sign In to add comment