Created
June 2, 2016 14:23
-
-
Save nickhudkins/7d354bcd7ce9d7bb10a6a07da7b0fd18 to your computer and use it in GitHub Desktop.
Relevant Fragment Definitions
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
/*...*/ | |
fragments: { | |
viewer: () => Relay.QL` | |
fragment on User { | |
todos(status: $status, first: 2147483647) { | |
edges { | |
node { | |
id, | |
${Todo.getFragment('todo')}, | |
}, | |
}, | |
}, | |
} | |
`, | |
}, | |
/* ... */ |
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
/*...*/ | |
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