Skip to content

CLI whole query file is inserted in generated query field #433

Open
@bonega

Description

@bonega

When generating from a single query-file that contains multiple mutations I get:

pub mod op_a {
   pub const QUERY : & str = "mutation op_a\n mutation op_b\n"
...
}

When sending a graphql request, the response will complain about fields that are present in op_b.
If I manually remove op_b from the QUERY field it works.

Thanks for any help.

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