Skip to content

Duplicate 'Queries' module generated #1

@hikurangi

Description

@hikurangi

We've been diving into this library and have discovered an issue:

When running graphql-codegen, it generates a Queries module in both Apollo.re and Graphql.re, potentially unnecessarily(?). That yields the following error:

We've found a bug for you!
 /home/user/repo/graphql/Apollo.re 11:8-14
  9 │ });
 10 │
 11 │ module Queries = {
 12 │   module MyQuery = {
 13 │     include MakeQuery({
 Multiple definition of the module name Queries.
 Names must be unique in a given structure or signature.

Our workaround is to comment the offending Queries module out of the Graphql.re file, allowing us to run the codegen command successfully.

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