From 024ba81cd2dbeaae249460fa345cf2d8c5dc6fb1 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Fri, 26 Oct 2018 15:53:39 +0200 Subject: [PATCH] cleanup and some notes --- src/graphql-schema.js | 2 -- src/index.js | 9 +++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) 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