mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Disabled cypther logs and added DEBUG env var
This commit is contained in:
parent
7798c9fafd
commit
2571d82447
@ -102,7 +102,7 @@ export const resolvers = {
|
||||
.then(async (result) => {
|
||||
session.close()
|
||||
const [currentUser] = await result.records.map(function (record) {
|
||||
console.log(record.get('user'))
|
||||
// console.log(record.get('user'))
|
||||
return record.get('user')
|
||||
})
|
||||
if (currentUser && await bcrypt.compareSync(password, currentUser.password)) {
|
||||
|
||||
@ -36,5 +36,5 @@ export default async function (client) {
|
||||
}
|
||||
})
|
||||
/* eslint-disable-next-line no-console */
|
||||
console.log('Seeded Data', data)
|
||||
console.log('Seeded Data...')
|
||||
}
|
||||
|
||||
@ -21,6 +21,7 @@ let schema = makeExecutableSchema({
|
||||
})
|
||||
|
||||
const driver = neo4j().getDriver()
|
||||
const debug = process.env.NODE_ENV !== 'production' && process.env.DEBUG === 'true'
|
||||
|
||||
schema = augmentSchema(schema, {
|
||||
query: {
|
||||
@ -28,7 +29,8 @@ schema = augmentSchema(schema, {
|
||||
},
|
||||
mutation: {
|
||||
exclude: ['Statistics', 'LoggedInUser']
|
||||
}
|
||||
},
|
||||
debug: debug
|
||||
})
|
||||
schema = applyScalars(applyDirectives(schema))
|
||||
|
||||
@ -50,7 +52,7 @@ const createServer = (options) => {
|
||||
return payload
|
||||
},
|
||||
schema: schema,
|
||||
tracing: true,
|
||||
tracing: debug,
|
||||
middlewares: middleware(schema),
|
||||
mocks: (process.env.MOCK === 'true') ? mocks : false
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user