mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
cleanup and some notes
This commit is contained in:
parent
811dee372b
commit
024ba81cd2
@ -4,7 +4,6 @@ import path from 'path'
|
|||||||
import bcrypt from 'bcryptjs'
|
import bcrypt from 'bcryptjs'
|
||||||
import zipObject from 'lodash/zipObject'
|
import zipObject from 'lodash/zipObject'
|
||||||
import generateJwt from './jwt/generateToken'
|
import generateJwt from './jwt/generateToken'
|
||||||
import values from 'lodash/values'
|
|
||||||
import { fixUrl } from './middleware/fixImageUrlsMiddleware'
|
import { fixUrl } from './middleware/fixImageUrlsMiddleware'
|
||||||
|
|
||||||
export const typeDefs =
|
export const typeDefs =
|
||||||
@ -78,7 +77,6 @@ export const resolvers = {
|
|||||||
}
|
}
|
||||||
resolve(data)
|
resolve(data)
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
// usersBySubstring: neo4jgraphql
|
// usersBySubstring: neo4jgraphql
|
||||||
},
|
},
|
||||||
|
|||||||
@ -61,6 +61,15 @@ const server = new GraphQLServer({
|
|||||||
return payload
|
return payload
|
||||||
},
|
},
|
||||||
schema: augmentSchema(schema),
|
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,
|
tracing: true,
|
||||||
middlewares: middleware,
|
middlewares: middleware,
|
||||||
mocks: MOCK ? mocks : false
|
mocks: MOCK ? mocks : false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user