MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / AddField

Method AddField

ent/mutation.go:6988–6992  ·  view source on GitHub ↗

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

(name string, value ent.Value)

Source from the content-addressed store, hash-verified

6986// the field is not defined in the schema, or if the type mismatched the field
6987// type.
6988func (m *MetadataMutation) AddField(name string, value ent.Value) error {
6989 switch name {
6990 }
6991 return fmt.Errorf("unknown Metadata numeric field %s", name)
6992}
6993
6994// ClearedFields returns all nullable fields that were cleared during this
6995// mutation.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected