hi, is there anything like an SQL WHERE for GraphQ...
# prisma-whats-new
j
hi, is there anything like an SQL WHERE for GraphQL? I would like to do something like: mutation UpdateUser(name: $name) { updateUser(where: { name: $name }) … }
in the prisma docs, I can read: updateUser( where: { id: “cjd4lfdyww0h00144zst9alur” } data: { … Is this only for Prisma? Or is it the Relay API? I have not seen this syntax in the simple API docs…
a
This is, as far as I know, Prisma exclusive as well. That is the part that gets generated when you perform a
prisma deploy
based on your data model. Do you use
Prisma
or the BaaS Graphcool solution?
j
We still use BaaS, will not be able to gor for Prisma at this point
But since they say Prisma will be incorporated in the BaaS, I guess the above syntax will work at that point.