mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
dialect/sql/sqlgraph: support edgeschema in entgql (#2817)
This commit is contained in:
@@ -36,6 +36,15 @@ var schemaGraph = func() *sqlgraph.Schema {
|
||||
Type: field.{{ $n.ID.Type.ConstName }},
|
||||
Column: {{ $n.Package }}.{{ $n.ID.Constant }},
|
||||
},
|
||||
{{- else }}
|
||||
CompositeID: []*sqlgraph.FieldSpec{
|
||||
{{- range $id := $n.EdgeSchema.ID }}
|
||||
{
|
||||
Type: field.{{ $id.Type.ConstName }},
|
||||
Column: {{ $n.Package }}.{{ $id.Constant }},
|
||||
},
|
||||
{{- end }}
|
||||
},
|
||||
{{- end }}
|
||||
},
|
||||
Type: "{{ $n.Name }}",
|
||||
|
||||
Reference in New Issue
Block a user