MCPcopy
hub / github.com/ent/ent / Mutate

Method Mutate

ent.go:361–361  ·  view source on GitHub ↗

Mutate apply the given mutation on the graph. The returned ent.Value is changing according to the mutation operation: OpCreate, the returned value is the created node (T). OpUpdateOne, the returned value is the updated node (T). OpUpdate, the returned value is the amount of updated nodes (int). OpD

(context.Context, Mutation)

Source from the content-addressed store, hash-verified

359 // OpDeleteOne, OpDelete, the returned value is the amount of deleted nodes (int).
360 //
361 Mutate(context.Context, Mutation) (Value, error)
362 }
363
364 // The MutateFunc type is an adapter to allow the use of ordinary

Callers 15

withHooksFunction · 0.95
withHooksFunction · 0.95
withHooksFunction · 0.95
withHooksFunction · 0.95
withHooksFunction · 0.95
withHooksFunction · 0.95
withHooksFunction · 0.95
withHooksFunction · 0.95
withHooksFunction · 0.95
withHooksFunction · 0.95
withHooksFunction · 0.95
withHooksFunction · 0.95

Implementers 15

Cliententc/integration/migrate/entv2/client.
Cliententc/integration/migrate/entv1/client.
Cliententc/integration/migrate/versioned/cli
Cliententc/integration/gremlin/ent/client.go
Cliententc/integration/ent/client.go
Cliententc/integration/idtype/ent/client.go
Cliententc/integration/edgefield/ent/client.
Cliententc/integration/privacy/ent/client.go
Cliententc/integration/edgeschema/ent/client
Cliententc/integration/multischema/ent/clien
Cliententc/integration/multischema/versioned
Cliententc/integration/customid/ent/client.g

Calls

no outgoing calls

Tested by 15

CreateBulkFunction · 0.52
TestCustomTemplateFunction · 0.52
TestSchemaHooksFunction · 0.52
TestRuntimeHooksFunction · 0.52
TestRuntimeChainFunction · 0.52
TestMutationClientFunction · 0.52
TestMutatorClientFunction · 0.52
TestDeletionFunction · 0.52
TestMutationIDsFunction · 0.52
TestPostCreationFunction · 0.52
TestUpdateAfterCreationFunction · 0.52
TestUpdateAfterUpdateOneFunction · 0.52