Yogesh Chavan
1 min readAug 13, 2020

--

@ohmiler It looks like you don't have user created with id 1. You first need to check if the user you're trying to update exists by firing the following query

query {

users {

id

name

}

}

and use only the id which is returned from the result to update the user

mutation {

updateUser(id: "any_id_you_got_from_result_of_above_query", name:"Mike", age: 40) {

id

name

}

}

--

--

Yogesh Chavan
Yogesh Chavan

No responses yet