Skip to content

Instantly share code, notes, and snippets.

@daniele-zurico
Created June 5, 2018 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daniele-zurico/0b59f3e2f1f2558bda47d295ca2cbb5b to your computer and use it in GitHub Desktop.
Save daniele-zurico/0b59f3e2f1f2558bda47d295ca2cbb5b to your computer and use it in GitHub Desktop.
import {
addMockFunctionsToSchema,
gql,
makeExecutableSchema
} from "apollo-server";
import { GraphQLSchema } from "graphql";
const helloSchema: GraphQLSchema = makeExecutableSchema({
typeDefs: gql`
type Query {
hello: String
}
`
});
addMockFunctionsToSchema({ schema: helloSchema });
export default helloSchema;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment