Skip to content

Instantly share code, notes, and snippets.

@a7v8x
Created May 2, 2020 12:59
Show Gist options
  • Save a7v8x/73331bee365a90b41a565e4ff2605688 to your computer and use it in GitHub Desktop.
Save a7v8x/73331bee365a90b41a565e4ff2605688 to your computer and use it in GitHub Desktop.
import {
GraphQLList,
GraphQLNonNull,
} from 'graphql';
import { getTasks } from '../../operations/tasks-operations';
import Task from './TaskType';
const TaskQueries = {
tasks: {
type: new GraphQLNonNull(new GraphQLList(Task)),
resolve: () => getTasks(),
},
};
export default TaskQueries;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment