MCPcopy
hub / github.com/ent/ent / SetField

Method SetField

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

SetField sets the value for the given name. It returns an error if the field is not defined in the schema, or if the type mismatch the field type.

(name string, value Value)

Source from the content-addressed store, hash-verified

285 // error if the field is not defined in the schema, or if the
286 // type mismatch the field type.
287 SetField(name string, value Value) error
288
289 // AddedFields returns all numeric fields that were incremented
290 // or decremented during this mutation.

Callers 15

createSpecMethod · 0.65
createSpecMethod · 0.65
createSpecMethod · 0.65
createSpecMethod · 0.65
createSpecMethod · 0.65
createSpecMethod · 0.65
createSpecMethod · 0.65
createSpecMethod · 0.65
createSpecMethod · 0.65
createSpecMethod · 0.65
createSpecMethod · 0.65
createSpecMethod · 0.65

Implementers 15

BlogMutationentc/integration/migrate/entv2/mutatio
CarMutationentc/integration/migrate/entv2/mutatio
ConversionMutationentc/integration/migrate/entv2/mutatio
CustomTypeMutationentc/integration/migrate/entv2/mutatio
GroupMutationentc/integration/migrate/entv2/mutatio
MediaMutationentc/integration/migrate/entv2/mutatio
PetMutationentc/integration/migrate/entv2/mutatio
UserMutationentc/integration/migrate/entv2/mutatio
ZooMutationentc/integration/migrate/entv2/mutatio
CarMutationentc/integration/migrate/entv1/mutatio
ConversionMutationentc/integration/migrate/entv1/mutatio
CustomTypeMutationentc/integration/migrate/entv1/mutatio

Calls

no outgoing calls

Tested by

no test coverage detected