Create

Use to create many nodes. The model.create method maps to the underlying Create operation.

1. Usage

const Movie = ogm.model("Movie");

await Movie.create({ input: [{ title: "The Matrix" }] })

2. Args

2.1. input

JavaScript object representation of the GraphQL input input type, used for Create.

2.2. selectionSet

Reference: Selection Set

2.3. args

The arguments to the GraphQL Query.

2.4. context

The context for the GraphQL Query.

2.5. rootValue

The rootValue for the GraphQL Query.