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:
Giau. Tran Minh
2022-02-06 22:48:02 +07:00
committed by GitHub
parent 8e9e6343f4
commit 74e988616a

View File

@@ -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: