mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: allow adding extra fields to the generated edges (#2437)
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user