Created
August 25, 2017 14:59
-
-
Save gc-codesnippets/914d24f555f5d248b6d1886a9c4484fb to your computer and use it in GitHub Desktop.
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
import {createFragmentContainer, graphql} from 'react-relay' | |
// ... | |
export default createFragmentContainer(TodoList, { | |
viewer: graphql` | |
fragment TodoList_viewer on Viewer { | |
allTodoes(last: 1000) { | |
edges { | |
node { | |
id, | |
complete, | |
...Todo_todo, | |
}, | |
}, | |
}, | |
...Todo_viewer, | |
} | |
`, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment