basti394
basti394

Reputation: 405

How to "select" a DB from a DBMS which should be queried by a GraphQL API?

I have a Neo4J DBMS with multiple DBs. And I want to query all of them with a GraphQL API in NextJS.

So is there a smart way to do this, like choosing which DB should be queried?

Upvotes: 0

Views: 75

Answers (1)

Thomas Wiss
Thomas Wiss

Reputation: 144

There is a neat way of doing just that with the @neo4j/graphql JS library. Once you followed the getting started steps linked above, take a look at the driver configuration page of the documentation. Especially the part regarding specifying which Neo4j database to use may be of interest to you.

Upvotes: 3

Related Questions