Is it possible to do batch mutation updates?
# prisma-whats-new
j
Is it possible to do batch mutation updates?
n
@joar currently, you would need to include the same
updateUser
mutation multiple times in the same GraphQL request - how many users are you looking to update?
j
Hmm, the number can be anything between 1-1000 but its non-deterministic so I cant hardcode them like in that doc. Would be nice to have a mutation like
Copy code
mutation {
  updateUsers(filter: { someFlag: true }, someFlag: false) {
    id
  }
}
n
gotcha! that's a great use case for
updateAll
- it's still an ongoing feature request: https://github.com/graphcool/feature-requests/issues/81
n
yes, it would be great! Most of the time the number of mutation is unknown
👍 1