mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
schema/field: add annotation option to schema field (#622)
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user