Skip to content

How to use createHandler with neo4j driver #73

Answered by ElginHarten
ElginHarten asked this question in Q&A
Discussion options

You must be logged in to vote

For anyone interested, the solution for hooking the neo4j driver is to write createHandler statement like so:

app.use('/graphql', createHandler({ schema: schema, context: (req) => ({ req, executionContext: driver }) }));

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by enisdenjo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant