Skip to content

Instantly share code, notes, and snippets.

@jhusain
Created August 19, 2015 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhusain/e0c23ec096a6fd4ab3f2 to your computer and use it in GitHub Desktop.
Save jhusain/e0c23ec096a6fd4ab3f2 to your computer and use it in GitHub Desktop.
Games JSON Graph
//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