mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
add json tag to edges
This commit is contained in:
@@ -28,7 +28,7 @@ type {{ $.Name }} struct {
|
||||
// {{ $e.StructField }} holds the value of the {{ $e.Name }} edge.
|
||||
{{ $e.StructField }} {{ if not $e.Unique }}[]{{ end }}*{{ $e.Type.Name }} {{ with $e.StructTag }}`{{ . }}`{{ end }}
|
||||
{{- end }}
|
||||
}
|
||||
} `json:"edges,omitempty"`
|
||||
{{- end -}}
|
||||
{{- /* Additional fields to add by the storage driver. */}}
|
||||
{{- $tmpl := printf "dialect/%s/model/fields" $.Storage }}
|
||||
|
||||
Reference in New Issue
Block a user