docs: fix missing ref in schema example (#682)

This commit is contained in:
Alexander Emelin
2020-08-22 13:13:25 +03:00
committed by GitHub
parent e9ae2072ea
commit e30adfc601

View File

@@ -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"),
}
}
```