Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 910 Bytes

api-reference.adoc

File metadata and controls

62 lines (44 loc) · 910 Bytes

API Reference

OGM

Requiring

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

Constructing

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

Methods

model()

Reference: Model

Model

Requiring

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

Constructing

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

const model = ogm.model("name")

Methods

find()

Reference: [ogm-methods-find]

count()

Reference: [ogm-methods-count]

create()

update()

delete()