May 2019
Intermediate to advanced
504 pages
11h 50m
English
In the previous examples, we have used embedding extensively to create an optimized data structure. This, of course, does not mean we haven't used any references. Most of the embedded objects that are used are actually reference descriptions.
In order to visualize the referential data points, let's normalize our Auction data:
{ "id" : "7ad0d2d4-e19c-4715-921b-950387abbe50", "description" : "Volvo S60 for Sale", "vehicleId": "f5574e12-01dc-4639-abeb-722e8e53e64f", "startingPrice": { "value" : 25000, "currencyId" : "32" }, "highestBids":[ "5d669390-2ba4-467a-b7f9-26fea2d6a129" ], "created": "2019-03-01T10:00Z", "countryCode": "USA", "userId": "efd68a2f-7309-41c0-af52-696ebe820199"}
Here, we have a 1-* relation between the
Read now
Unlock full access