diff --git a/package.json b/package.json index d753ed31c..bfddc0aa8 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "lodash": "^4.17.11", "ms": "^2.1.1", "neo4j-driver": "^1.6.1", - "neo4j-graphql-js": "1.0.4", + "neo4j-graphql-js": "1.0.5", "node-fetch": "^2.1.2", "passport": "^0.4.0", "passport-jwt": "^4.0.0", diff --git a/src/index.js b/src/index.js index 84787b154..e975ba57d 100644 --- a/src/index.js +++ b/src/index.js @@ -60,16 +60,15 @@ const server = new GraphQLServer({ return payload }, - schema: augmentSchema(schema), - // TODO: switch to the part below when neo4j-graphql-js 1.0.5 or higher is available - // schema: augmentSchema(schema, { - // query: { - // exclude: ['Statistics'] - // }, - // mutation: { - // exclude: ['Statistics'] - // } - // }), + // schema: augmentSchema(schema), + schema: augmentSchema(schema, { + query: { + exclude: ['Statistics', 'LoggedInUser'] + }, + mutation: { + exclude: ['Statistics', 'LoggedInUser'] + } + }), tracing: true, middlewares: middleware, mocks: MOCK ? mocks : false diff --git a/yarn.lock b/yarn.lock index bcb870cb6..42b231e58 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2709,9 +2709,9 @@ neo4j-driver@^1.6.1: babel-runtime "^6.18.0" uri-js "^4.2.1" -neo4j-graphql-js@1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/neo4j-graphql-js/-/neo4j-graphql-js-1.0.4.tgz#250bd44024f1505c726d2fc4ab27a35a1fc5330b" +neo4j-graphql-js@1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/neo4j-graphql-js/-/neo4j-graphql-js-1.0.5.tgz#ef5d59d2e7cf46971af49bceec2f4bcd2debc835" dependencies: graphql "^0.13.2" lodash "^4.17.10"