mulyoved
02/15/2017, 8:02 PMconst DishUpdate = gql`mutation updateDish($id:ID!, $duration: Number) {
updateDish(id: $id, duration: $duration) {
id,
duration: duration
}
}`;
using aApollClient get error Error: GraphQL error: Variable '$duration' cannot be non input type 'Number'
1 - I understand I need to define some input type, where I can see example to define input type
2 - insted of simple scallar want to pass complex data object, any known example for that?nilan
02/15/2017, 8:44 PMmulyoved
02/15/2017, 8:45 PMnilan
02/15/2017, 8:45 PMcreateDish mutation where you can find the input type of the duration argument. It's probably Intnilan
02/15/2017, 8:46 PMmulyoved
02/15/2017, 8:46 PMnilan
02/15/2017, 8:46 PMnilan
02/15/2017, 9:02 PMmulyoved
02/16/2017, 7:28 AM