neo4j/graphql, neo4j-driver, apollo/server
In ApolloServer with neo4j i created 4 database and create 4 users i created role to grant specific users .
// In driver am specify the dbane
const neo4j_driver = neo4j.driver(uri, neo4j.auth.basic(user, password), {
database: 'mydb', // Specify your database name here
});
// Assign the schema here
const server = new ApolloServer({
schema,
Set the user home db to mydb
On running the query its referring the ACCESS on database 'neo4j' is not allowed for user but am not referring the neo4j as am have to accesses only mydb
Getting error as "ACCESS on database 'neo4j' is not allowed for user myuser