add json tag to edges

This commit is contained in:
aca
2020-01-18 16:55:18 +09:00
parent 9b2b53f559
commit 53e0526dd4

View File

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