Skip to content

Instantly share code, notes, and snippets.

@JulienHe
Last active September 5, 2022 01:46
Show Gist options
  • Save JulienHe/51ec6d7f20de98a318118400c8920290 to your computer and use it in GitHub Desktop.
Save JulienHe/51ec6d7f20de98a318118400c8920290 to your computer and use it in GitHub Desktop.
Graphql Executable
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