Add resolver to example

This commit is contained in:
Tobe O 2019-04-24 15:12:18 -04:00
parent 8193ee80d3
commit 5d281c4392

View file

@ -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),
), ),
], ],
); );