Kashuab / mobx-depot

Scaffold MobX-powered models, queries and mutations with your GraphQL schema.
https://mobx-depot.dev
MIT License
8 stars 0 forks source link

__typename gets into model state #44

Open Kashuab opened 1 year ago

Kashuab commented 1 year ago

Sometimes an error gets thrown from MobX stating "Cannot apply true to __typename: Field not found"

I'm not quite sure exactly what's happening under-the-hood, but I think the cause is that when someModel.assign(data) gets called within RootStore.resolve, the __typename gets provided when it shouldn't