Catch the highlights of GraphQLConf 2023! Click for recordings. Or check out our recap blog post.
Docs
Source Handlers
Neo4j

Neo4j

image

This handler allows you to use the GraphQL schema created by @neo4j/graphql.

To get started, install the handler library:

npm i @graphql-mesh/neo4j

Now, you can use it directly in your Mesh config file:

.meshrc.yaml
sources:
  - name: Neo4j
    handler:
      neo4j:
        url: neo4j://localhost
        username: neo4j
        password: MY_PASSWORD

Config API Reference

  • endpoint (type: String, required) - URL for the Neo4j Instance e.g. neo4j://localhost
  • source (type: String) - Provide GraphQL Type Definitions instead of inferring
  • username (type: String, required) - Username for basic authentication
  • password (type: String, required) - Password for basic authentication
  • alwaysIncludeRelationships (type: Boolean) - Specifies whether relationships should always be included in the type definitions as relationship types, even if the relationships do not have properties.
  • database (type: String) - Specifies database name