Skip to content

await-ing an update call does not return all the data it receives from api #33

@mgiraldo

Description

@mgiraldo

assuming this call const result = await store.$db().model(model).jsonApi().update(id, obj) produces a PATCH request with an object that returns a data object with several included objects.

the result variable will only contain a shallow representation of the call (namely the basic model in the example with its attributes)

ideally the update method returns a proper vuex orm structure with all the information that it just received from the api

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions