Add resolver to example
This commit is contained in:
parent
8193ee80d3
commit
5d281c4392
1 changed files with 7 additions and 2 deletions
|
@ -46,8 +46,13 @@ main() async {
|
||||||
description: 'Modify the to-do list.',
|
description: 'Modify the to-do list.',
|
||||||
fields: [
|
fields: [
|
||||||
field(
|
field(
|
||||||
'create',
|
'createTodo',
|
||||||
graphQLString,
|
convertDartType(Todo),
|
||||||
|
inputs: [
|
||||||
|
GraphQLFieldInput(
|
||||||
|
'data', convertDartType(Todo).coerceToInputObject()),
|
||||||
|
],
|
||||||
|
resolve: resolveViaServiceCreate(todoService),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue