Skip to content

Instantly share code, notes, and snippets.

@bobvanluijt
Last active February 19, 2016 09:57
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 bobvanluijt/61ad43700d8d9a2ac5d3 to your computer and use it in GitHub Desktop.
Save bobvanluijt/61ad43700d8d9a2ac5d3 to your computer and use it in GitHub Desktop.
Different JSON schema implementations, Falcor vs Google API
/**
* Falcor
*/
{ $type: "ref", value: ["todosById", 44] }
/* or */
var $ref = falcor.Model.ref;
$ref('todosById[44]')
/**
* Google API
*/
{ $ref: ["todosById", 44] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment