API Reference

1. OGM

1.1. Requiring

const { OGM } = require("@neo4j/graphql-ogm");

1.2. Constructing

const ogm = new OGM({
    typeDefs,
    resolvers?,
});

1.3. Methods

1.3.1. model()

Reference: Model

2. Model

2.1. Requiring

import type { Model } from "@neo4j/graphql-ogm"

2.2. Constructing

You construct a model from invoking the .model method on an OGM.

const model = ogm.model("name")

2.3. Methods

2.3.1. find()

Reference: Find

2.3.2. create()

Reference: Create

2.3.3. update()

Reference: Update

2.3.4. delete()

Reference: Delete