Last active
September 5, 2022 01:46
-
-
Save JulienHe/51ec6d7f20de98a318118400c8920290 to your computer and use it in GitHub Desktop.
Graphql Executable
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 { makeExecutableSchema } from "@graphql-tools/schema"; | |
import typeDefs from "./typedefs"; | |
import mockArticle from "~/graphql/mock/article"; | |
const executableSchema = makeExecutableSchema({ | |
typeDefs, | |
resolvers: { | |
Query: { | |
articles: () => mockArticle, | |
}, | |
}, | |
}); | |
export default executableSchema; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment