Created
May 2, 2020 12:59
-
-
Save a7v8x/73331bee365a90b41a565e4ff2605688 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 { | |
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