Created
August 19, 2015 18:19
-
-
Save jhusain/e0c23ec096a6fd4ab3f2 to your computer and use it in GitHub Desktop.
Games JSON Graph
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//You shouldn't find your self asking for ids from a Falcor JSON Graph object. | |
//it seems like you want to build an array of game ids: | |
{ | |
games: [ | |
{ $type: "ref", value: ["gamesById", 352] }, | |
{ $type: "ref", value: ["gamesById", 428] } | |
// ... | |
], | |
gamesById: { | |
352: { | |
gameProp1: ..., | |
}, | |
428: { | |
gameProp2: ... | |
} | |
} | |
} | |
[games, {from: 5, to: 17 }, "gameProp1"] | |
// Does that work? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment