website: fix code example in the simple cms blog post (#3837)

This commit is contained in:
Jearel Alcantara
2023-11-21 03:11:33 -04:00
committed by GitHub
parent 717ac7832a
commit d5eb1aa5ad

View File

@@ -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().