From a39e8dcd7adf4e906eb86b1a69f192da1b07e79a Mon Sep 17 00:00:00 2001 From: xonx <119700621+xonx4l@users.noreply.github.com> Date: Tue, 5 Sep 2023 18:58:55 +0530 Subject: [PATCH] Update A.graphql issue-:#103 Signed-off-by: xonx <119700621+xonx4l@users.noreply.github.com> --- db/A/A.graphql | 8 ++++++++ 1 file changed, 8 insertions(+) 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 });