upgraded neo4j-graphql-js to 1.0.5 and removed blacklisted mutations for Statistics and LoggedInUser

This commit is contained in:
Grzegorz Leoniec 2018-10-28 14:56:30 +01:00
parent 8a60b417ee
commit 6449d2a99c
3 changed files with 13 additions and 14 deletions

View File

@ -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",

View File

@ -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

View File

@ -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"