Skip to content

Instantly share code, notes, and snippets.

@tomodutch
Created December 30, 2018 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomodutch/e89b84025bc0a90dc2d11aae1ff139c3 to your computer and use it in GitHub Desktop.
Save tomodutch/e89b84025bc0a90dc2d11aae1ff139c3 to your computer and use it in GitHub Desktop.
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