mirror of
https://github.com/ent/ent.git
synced 2026-03-05 19:35:23 +03:00
website: fix code example in the simple cms blog post (#3837)
This commit is contained in:
@@ -159,7 +159,8 @@ func (Post) Fields() []ent.Field {
|
||||
}
|
||||
}
|
||||
|
||||
// Edges of the Post.func (Post) Edges() []ent.Edge {
|
||||
// Edges of the Post.
|
||||
func (Post) Edges() []ent.Edge {
|
||||
return []ent.Edge{
|
||||
edge.From("author", User.Type).
|
||||
Unique().
|
||||
|
||||
Reference in New Issue
Block a user