Created
December 30, 2018 17:36
-
-
Save tomodutch/e89b84025bc0a90dc2d11aae1ff139c3 to your computer and use it in GitHub Desktop.
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 gql from "graphql-tag"; | |
import { Query } from "react-apollo"; | |
import { GetTodos, GetTodosVariables } from "./__generated__/GetTodos"; | |
export const getTodosQuery = gql` | |
query GetTodos($count: Int) { | |
allTodos(count: $count) { | |
id | |
title | |
completed | |
} | |
} | |
`; | |
export class GetTodosQuery extends Query<GetTodos, GetTodosVariables> {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment