docs: various fixes to the graphql tutorial (#2965)

* doc/md: fix resolver diff and isolation example

* doc/md: fix updateTodo input field

* doc/md: add missing extension and fix paths

Without entgql.WithSchemaGenerator entc.go fails to run.

* doc/md: add file titles

Note that the where:TodoWhereInput parameter is pre-filled in the
generated ent.graphql file.

* doc/md: add context to conjunction/negation example

Only add for the first example to provide a lead to readers.
This commit is contained in:
Dan Kortschak
2022-09-27 16:32:16 +09:30
committed by GitHub
parent bd80e069b9
commit e02622a064
3 changed files with 44 additions and 35 deletions

View File

@@ -147,7 +147,7 @@ The only thing left is to test the `UpdateTodo` resolver. Let's use it to update
```graphql
mutation UpdateTodo {
updateTodo(id: 2, input: {parent: 1}) {
updateTodo(id: 2, input: {parentID: 1}) {
id
text
createdAt