mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
schema/edge: add annotation support for edges (#651)
This commit is contained in:
@@ -844,9 +844,9 @@ func (b *uuidBuilder) Descriptor() *Descriptor {
|
||||
|
||||
// Annotation is used to attach arbitrary metadata to the field object in codegen.
|
||||
// The object must be serializable to JSON raw value (e.g. struct, map or slice).
|
||||
// Template extensions can retrieve this metadata and use inside their templates.
|
||||
// Template extensions can retrieve this metadata and use it inside their templates.
|
||||
type Annotation interface {
|
||||
// Name defines the name of the annotation.
|
||||
// Name defines the name of the annotation to be retrieved by the codegen.
|
||||
Name() string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user