cancel
Showing results for 
Search instead for 
Did you mean: 

Graphql-neo4j-js: specify neo4j-user in request

Hi there,
we are currently trying to implement authorization using neo4j's role system. When connecting to our database using graphql (with graphql-neo4j-js), we are using the neo4j-driver to login to our database. However, we would like to have multiple neo4j-users access the same graphql-endpoint. Is it possible to specify the neo4j user in a request header, similar to how you would specify the db in this example?

1 REPLY 1

MuddyBootsCode
Graph Steward

I don't know if that's possible but you may be able to replace the information in the driver creation portion of the code with the incoming information like you would the database name. You're probably better off doing it with the already created grandstack authorization directives though.