mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
upgraded neo4j-graphql-js to 1.0.5 and removed blacklisted mutations for Statistics and LoggedInUser
This commit is contained in:
parent
8a60b417ee
commit
6449d2a99c
@ -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",
|
||||
|
||||
19
src/index.js
19
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
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user