doc/md: add tutorial on how to generate mutation input types (#1476)

* doc/md: add tutorial on how to generate mutation input types

* address codereview comments
This commit is contained in:
Ariel Mashraki
2021-04-19 12:29:16 +03:00
committed by GitHub
parent 9829ffb385
commit 1ea5d64607
3 changed files with 436 additions and 0 deletions

View File

@@ -49,3 +49,9 @@ func (mutationResolver) CreateTodo(ctx context.Context, todo TodoInput) (*ent.To
Save(ctx)
}
```
---
Great! With a few lines of code, our application now supports automatic transactional mutations. Please continue to the
next section where we explain how to extend the Ent code generator and generate [GraphQL input types](https://graphql.org/graphql-js/mutations-and-input-types/)
for our GraphQL mutations.