doc: fix edge.Annotations method name typo (#3618)

This commit is contained in:
Mizuki Hashimoto
2023-06-27 06:56:04 +02:00
committed by GitHub
parent f0a81e2640
commit c151e305ca
3 changed files with 3 additions and 3 deletions

View File

@@ -220,7 +220,7 @@ func (Todo) Edges() []ent.Edge {
edge.To("parent", Todo.Type).
Unique().
From("children").
Annotation(entgql.RelayConnection()),
Annotations(entgql.RelayConnection()),
}
}
```

View File

@@ -68,7 +68,7 @@ func (Todo) Edges() []ent.Edge {
edge.To("parent", Todo.Type).
Unique().
From("children").
Annotation(entgql.RelayConnection()),
Annotations(entgql.RelayConnection()),
}
}
```

View File

@@ -253,7 +253,7 @@ func (Fridge) Edges() []ent.Edge {
return []ent.Edge{
edge.To("compartments", Compartment.Type).
// Do not generate an endpoint for POST /fridges/{id}/compartments
Annotation(
Annotations(
entoas.CreateOperation(
entoas.OperationPolicy(entoas.PolicyExclude),
),