Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.
This repository was archived by the owner on Apr 23, 2024. It is now read-only.

Conditionally fetch fields #2

@dhmacs

Description

@dhmacs

This library abstracts away the fetching of data from the user and right now we do it at the cost of sacrificing performances (i.e. we fetch all the data from the storefront api, even the data that the user might actually not need).

This issue is to overcome this limitation by using graphql directives to fetch data based on user needs.

We need to come up with an easy to use API that let's devs who want to improve perfs by reducing request size to do so.
It can be something like a blacklist param:

<Collection exclude="variants", "options", "handle">
...
</Collection>

We need to put more thoughts on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement ✨Enhancement of existing features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions