mirror of
https://github.com/ent/ent.git
synced 2026-03-05 19:35:23 +03:00
doc: fix edge.Annotations method name typo (#3618)
This commit is contained in:
@@ -220,7 +220,7 @@ func (Todo) Edges() []ent.Edge {
|
||||
edge.To("parent", Todo.Type).
|
||||
Unique().
|
||||
From("children").
|
||||
Annotation(entgql.RelayConnection()),
|
||||
Annotations(entgql.RelayConnection()),
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -68,7 +68,7 @@ func (Todo) Edges() []ent.Edge {
|
||||
edge.To("parent", Todo.Type).
|
||||
Unique().
|
||||
From("children").
|
||||
Annotation(entgql.RelayConnection()),
|
||||
Annotations(entgql.RelayConnection()),
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -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),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user