entc/gen: fix name conflict in type package (#1274)

Fixed #1268
This commit is contained in:
Ariel Mashraki
2021-02-25 14:26:04 +02:00
committed by GitHub
parent a0c3976ee5
commit 31ec081b0e
11 changed files with 312 additions and 9 deletions

View File

@@ -6,7 +6,7 @@ in the LICENSE file in the root directory of this source tree.
{{/* constants needed for gremlin dialects. */}}
{{ define "dialect/gremlin/meta/constants" }}
{{ range $_, $e := $.Edges }}{{ $label := $e.LabelConstant -}}
{{ range $e := $.Edges }}{{ $label := $e.LabelConstant -}}
{{ if $e.IsInverse }}{{- $label = $e.InverseLabelConstant -}}
// {{ $label }} holds the string label denoting the {{ lower $e.Name }} inverse edge type in the database.
{{ else -}}