Created
June 25, 2019 10:10
-
-
Save chris001177/79f297a9446ac41a9efbe9289c482234 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 React from 'react'; | |
import gql from 'graphql-tag'; | |
import { Query } from 'urql'; | |
const getTodos = gql` | |
query GetTodos($limit: Int!) { | |
todos(limit: $limit) { | |
id | |
text | |
isDone | |
} | |
} | |
`; | |
<Query query={getTodos} variables={{ limit }} />; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment