Delete

Use to delete many nodes. The model.delete method maps to the underlying Delete operation.

1. Usage

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

await User.delete({ where: { name: "dan" }});

2. Args

2.1. where

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

2.2. delete

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

2.3. args

The arguments for the GraphQL Query.

2.4. context

The context for the GraphQL Query.

2.5. rootValue

The rootValue for the GraphQL Query.