Created
August 25, 2017 15:05
-
-
Save gc-codesnippets/3bc0fa4d86d41f872cba36022078b145 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(Todo, { | |
todo: graphql` | |
fragment Todo_todo on Todo { | |
id, | |
complete, | |
text, | |
...ChangeTodoStatusMutation_todo, | |
...RemoveTodoMutation_todo, | |
...RenameTodoMutation_todo, | |
} | |
`, | |
viewer: graphql` | |
fragment Todo_viewer on Viewer { | |
id, | |
...ChangeTodoStatusMutation_viewer, | |
...RemoveTodoMutation_viewer, | |
} | |
`, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment