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

Handle types without IDs #15

Closed KashubaK closed 1 year ago

KashubaK commented 1 year ago

Consider the following response:

{
    "data": {
        "createUser": {
            "__typename": "CreateUserPayload",
            "user": {
                "__typename": "User",
                "id": "63edd019a0afdb0eb9e71324",
                "email": "kyle+g243g2434g42@beepboop.com",
                "displayName": "jtstjshtsgf"
            },
            "token": "asdfghjkl",
            "userErrors": null
        }
    }
}

There is a CreateUserPayloadModel, but it currently doesn't get resolved due to its lack of ID.