Skip to content

No values were updated in collection because no values were found (but the record does exist) #457

@AlineFrancois

Description

@AlineFrancois

Hello :)

I am pretty new to graphQL so I'm sorry if this is very trivial. I'm trying to update a user first name using a mutation, but it returns No values were updated in collection 'users' using key 'id' because no values were found., which is very weird because I can see my record when querying allUsers

Here is the mutation I tried:

mutation test($input: UpdateUserByIdInput!) {
  updateUserById(input: $input) {
    user {
      firstName
      id
    }
  }
}

And the variable:

{
    "input":{
         "id": 6,
        "userPatch": {
            "firstName": "Aline update"
        }
    }
}

And here is my query on allUsers and the result, showing the record where id = 6:

image

Am I missing something ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions