Last active
October 3, 2020 04:22
-
-
Save Ericnr/1a227b88a338d325bcb7b918b65e6ca4 to your computer and use it in GitHub Desktop.
Todos
This file contains hidden or 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 { | |
| Todos_viewer, | |
| Todos_viewer$key, | |
| } from './_generated_/Todos_viewer.graphql'; | |
| interface Props { | |
| viewer: Todos_viewer$key; | |
| } | |
| export const Todos = ({ viewer }: Props) => { | |
| const { todos }: Todos_viewer = useFragment( | |
| graphql` | |
| fragment Todos_viewer on User { | |
| todos { | |
| id | |
| description | |
| isCompleted | |
| } | |
| } | |
| `, | |
| viewer | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment