plugin-graphql icon indicating copy to clipboard operation
plugin-graphql copied to clipboard

issue with mutating nulls

Open tonipepperoni opened this issue 5 years ago • 2 comments

if you mutate an object and after it gets mutated by setting a field null, it is ignored by vuex orm and maintains previous non null state.

Example: I have a model where I have accepted_at = 03/03/2019 for an Offer model I want to mutate this in graphql and set accepted_at = null
it gets ignored by transformIncoming call

tonipepperoni avatar Jun 11 '19 08:06 tonipepperoni

I just noticed this exact same issue. When I look at the network request, the field that I'm wanting to set to null isn't included in the variables object.

jimmiejackson414-zz avatar Dec 07 '20 18:12 jimmiejackson414-zz

update on this? i want to mutate null values also

shidcordero avatar Feb 28 '21 07:02 shidcordero