Skip to content

Instantly share code, notes, and snippets.

@nickhudkins
Created June 2, 2016 14:23
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 nickhudkins/7d354bcd7ce9d7bb10a6a07da7b0fd18 to your computer and use it in GitHub Desktop.
Save nickhudkins/7d354bcd7ce9d7bb10a6a07da7b0fd18 to your computer and use it in GitHub Desktop.
Relevant Fragment Definitions
/*...*/
fragments: {
viewer: () => Relay.QL`
fragment on User {
todos(status: $status, first: 2147483647) {
edges {
node {
id,
${Todo.getFragment('todo')},
},
},
},
}
`,
},
/* ... */
/*...*/
fragments: {
viewer: () => Relay.QL`
fragment on User {
completedCount,
todos(status: $status, first: 2147483647) {
edges {
node {
id,
extra
${Todo.getFragment('todo')},
},
},
},
}
`,
},
/* ... */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment