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

Do queries have to be extracted? #392

@baconcheese113

Description

@baconcheese113

I use graphql client side in Flutter very similar to how I use it with Apollo Client and Relay, where each Widget/Component houses the parts of the query that will be used in it's widget and child widgets have their own fragments. You can see an example of one of my main queries here and here.

In Relay I would type each prop containing the fragment query response in that specific component with the type generated for the fragment, the types are then placed in the file's folder in a generated folder. Based on the example apps I've looked at it seems like the queries have to be extracted to their own files, is that right? Is there a way to get something similar to Relay/Apollo Client where the graphql fragments live in the same files as the component that uses them with Artemis?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions