Skip to content

Allow to share fragments #413

Open
Open
@Sytten

Description

@Sytten

Currently all operations need to be in the same file if you want to be able to share fragments.
I would be nice if we could specify a list of files in the derive arguments to specify shared things.
Something like:

#[graphql(
    schema_path = "../schema.graphql",
    query_path = "tests/common/operations/mutations.graphql",
    shared_paths = "tests/common/operations/fragments.graphql, tests/common/operations/other.graphql",
    response_derives = "Debug"
)]

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