vuex-orm / plugin-graphql

Vuex ORM persistence plugin to sync the store against a GraphQL API.

Home Page:https://vuex-orm.github.io/plugin-graphql/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

issue with mutating nulls

tonipepperoni opened this issue · 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

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.

update on this? i want to mutate null values also