mirror of
https://github.com/ent/ent.git
synced 2026-03-05 19:35:23 +03:00
doc/tutorial: document the new Bind/Unbind behavior (#2315)
* Update tutorial-todo-gql-field-collection.md * Update doc/md/tutorial-todo-gql-field-collection.md Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
This commit is contained in:
@@ -134,6 +134,9 @@ func (Todo) Edges() []ent.Edge {
|
||||
}
|
||||
}
|
||||
```
|
||||
:::info
|
||||
The `Bind()` annotation is now enabled by default, use `Unbind()` to opt-out.
|
||||
:::
|
||||
|
||||
After adding these annotations, `entgql` will do the binding mentioned in the [section](#ent-solution) above. Additionally, it
|
||||
will also generate edge-resolvers for the nodes under the `edge.go` file:
|
||||
|
||||
Reference in New Issue
Block a user