diff --git a/src/graphql-schema.js b/src/graphql-schema.js index b71c64ab7..44ec8116d 100644 --- a/src/graphql-schema.js +++ b/src/graphql-schema.js @@ -4,7 +4,6 @@ import path from 'path' import bcrypt from 'bcryptjs' import zipObject from 'lodash/zipObject' import generateJwt from './jwt/generateToken' -import values from 'lodash/values' import { fixUrl } from './middleware/fixImageUrlsMiddleware' export const typeDefs = @@ -78,7 +77,6 @@ export const resolvers = { } resolve(data) }) - } // usersBySubstring: neo4jgraphql }, diff --git a/src/index.js b/src/index.js index 8cae4d4f6..84787b154 100644 --- a/src/index.js +++ b/src/index.js @@ -61,6 +61,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'] + // } + // }), tracing: true, middlewares: middleware, mocks: MOCK ? mocks : false