schema/edge: add annotation support for edges (#651)

This commit is contained in:
Ariel Mashraki
2020-08-01 15:38:47 +03:00
committed by GitHub
parent e9b406ca65
commit 05dfd6b78b
11 changed files with 136 additions and 71 deletions

View File

@@ -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
}