schema/field: add annotation option to schema field (#622)

This commit is contained in:
Ariel Mashraki
2020-07-19 18:01:04 +03:00
committed by GitHub
parent bdd80ebb3f
commit 54f0a6769b
16 changed files with 418 additions and 30 deletions

View File

@@ -43,7 +43,7 @@ type Edge struct {
}
{{/* loop over all types and add implement the Node interface. */}}
{{ range $_, $n := $.Nodes -}}
{{ range $n := $.Nodes -}}
{{ $receiver := $n.Receiver }}
func ({{ $receiver }} *{{ $n.Name }}) Node(ctx context.Context) (node *Node, err error) {
node = &Node{