diff --git a/doc/website/blog/2023-02-23-simple-cms-with-ent.mdx b/doc/website/blog/2023-02-23-simple-cms-with-ent.mdx index df7afbd89..bf261fae5 100644 --- a/doc/website/blog/2023-02-23-simple-cms-with-ent.mdx +++ b/doc/website/blog/2023-02-23-simple-cms-with-ent.mdx @@ -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().