Also does anyone know if there’s a way to use the ...
# prisma-whats-new
a
Also does anyone know if there’s a way to use the Request Pipeline to change a mutation type? The lack of upsert is really holding us back so I was wondering if anyone had any luck using functions to change a Create mutation into a Update mutation based on some parameters
a
@aurnik You can use the values from a create mutation to manually do a update mutation, then return an error from the function to prevent further processing of the original mutation
Or, create a webtask that acts like a proxy, check the request for an id, and create a create or update mutation yourself
a
Ah that’s a good idea, thanks!