Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- data : {
- "entityOne" : Entity Representation of entity A,
- "entityTwo" : Entity Representation of entity B
- },
- relationships : {
- "parenthood" : // Here I need to refer entityOne & entityTwo
- // to express the notion of one being child of other
- }
- }
- {
- data : {
- "entityOne" : { "id" : "temp1" -- other data for type A }
- "entityTwo" : { "id" : "temp2" -- other data for type B }
- },
- relationships : {
- "parenthood" : {
- "parent" : "temp1",
- "child" : "temp2"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement