Neo4j
Use Neo4j with GraphQL using @neo4j/graphql schema. Install @graphql-mesh/neo4j to use it directly in your Mesh config file. Get started now!
This handler allows you to use the GraphQL schema created by
@neo4j/graphql.
How to use?
To get started, install the handler library:
yarn add @omnigraph/neo4j
pnpm add @omnigraph/neo4j
Then you can import the library in your configuration file, and define your Neo4j source;
import { defineConfig } from '@graphql-mesh/compose-cli'
import { loadNeo4jSubgraph } from '@omnigraph/neo4j'
export const composeConfig = defineConfig({
subgraphs: [
{
sourceHandler: loadNeo4jSubgraph('MyNeo4j', {
url: 'neo4j://localhost',
username: 'neo4j',
password: 'MY_PASSWORD'
})
}
]
})