-
-
Save lucasconstantino/a38680914b88d4a705bedd428113912b 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 { makeExecutableSchema } from 'graphql-tools' | |
const typeDefs = ` | |
type Query { | |
helloWorld: String! | |
} | |
schema { | |
query: Query | |
} | |
` | |
const resolvers = { | |
Query: { | |
helloWorld: () => 'Hello!' | |
} | |
} | |
export const schema = makeExecutableSchema({ | |
typeDefs, | |
resolvers | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment