API Reference

1. Neo4jGraphQL

Main Entry to the library. Holds metadata about the GraphQL schema.

1.1. Requiring

const { Neo4jGraphQL } = require("@neo4j/graphql");

1.2. Constructing

const neo4jGraphQL = new Neo4jGraphQL({
    typeDefs,
    resolvers?,
    schemaDirectives?,
    driver?,
    config?: {
        driverConfig?,
        enableRegex?,
        jwt?: {
            secret?,
            noVerify?,
            rolesPath?,
        },
    },
});

1.3. Methods

1.3.1. checkNeo4jCompat

Reference: checkNeo4jCompat

2. OGM

Reference: API Reference