Remove unused import, variables, set debug to false

This commit is contained in:
Matt Rider 2019-04-17 18:37:44 -03:00
parent 86d075292c
commit f4744fa513
2 changed files with 8 additions and 9 deletions

View File

@ -5,20 +5,20 @@ export default {
CreateComment: async (object, params, context, resolveInfo) => {
const { postId } = params
delete params.postId
const comment = await neo4jgraphql(object, params, context, resolveInfo, true)
const comment = await neo4jgraphql(object, params, context, resolveInfo, false)
const session = context.driver.session()
const transactionRes = await session.run(`
await session.run(`
MATCH (post:Post {id: $postId}), (comment:Comment {id: $commentId})
MERGE (post)<-[:COMMENTS]-(comment)
RETURN comment {.id, .content}`, {
postId,
commentId: comment.id
}
postId,
commentId: comment.id
}
)
session.close()
session.close()
return comment
}
}

View File

@ -1,5 +1,4 @@
import faker from 'faker'
import uuid from 'uuid/v4'
export default function (params) {
const {