entc/gen: allow adding extra fields to the generated edges (#2437)

This commit is contained in:
Ariel Mashraki
2022-03-29 14:54:16 +03:00
committed by GitHub
parent 317594ec80
commit 48bb70f056
4 changed files with 22 additions and 4 deletions

View File

@@ -24,7 +24,6 @@ type User struct {
Name string `json:"name"`
// Age holds the value of the "age" field.
Age int `json:"age"`
// StaticField defined by templates (titled STATICFIELD).
StaticField string `json:"static_field,omitempty" rql:"static_field"`
}