Hello all, Any suggestions / best practices for it...
# random
a
Hello all, Any suggestions / best practices for item deletion mutations? The simplest way is probably to just create separate mutations for creating, deleting, etc. I would like to keep everything (if it’s feasible) in the one update mutation that I have that sends the input to the backend which updates the columns of the particular row in the database. The issue I’m running into is how do I tell the backend to delete the item from this update mutation. I’m using Elm on the front-end which doesn’t differentiate between
null
and
undefined
so I can’t just set the property of the item I want to delete to say
null
. What do you guys thing about passing an array of items to delete along with whatever input to update in the mutation? Thank you for any advice!
m
You can always call multiple mutations on a single request.