Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. {
  2. data : {
  3. "entityOne" : Entity Representation of entity A,
  4. "entityTwo" : Entity Representation of entity B
  5. },
  6. relationships : {
  7. "parenthood" : // Here I need to refer entityOne & entityTwo
  8. // to express the notion of one being child of other
  9. }
  10. }
  11.  
  12. {
  13. data : {
  14. "entityOne" : { "id" : "temp1" -- other data for type A }
  15. "entityTwo" : { "id" : "temp2" -- other data for type B }
  16. },
  17. relationships : {
  18. "parenthood" : {
  19. "parent" : "temp1",
  20. "child" : "temp2"
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement