mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
docs: fix missing ref in schema example (#682)
This commit is contained in:
@@ -65,6 +65,8 @@ func (User) Edges() []ent.Edge {
|
||||
edge.To("friends", User.Type),
|
||||
edge.From("groups", Group.Type).
|
||||
Ref("users"),
|
||||
edge.From("manage", Group.Type).
|
||||
Ref("admin"),
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user