diff --git a/db/A/A.graphql b/db/A/A.graphql index 1bc3c17..f729b38 100644 --- a/db/A/A.graphql +++ b/db/A/A.graphql @@ -1,3 +1,6 @@ +const { makeExecutableSchema, addMockFunctionsToSchema } = require('graphql-tools'); + +const typeDefs =` type Query { a: A! } @@ -7,3 +10,8 @@ type A @key(fields: "k") { v1: Int v2: String } +`; + +const schema = makeExecutableSchema({ typeDefs }); + +addMockFunctionsToSchema({ schema });