Skip to content

Naming conflicts on generated Query Mock Object #3537

@tonyarnold

Description

@tonyarnold

Question

I'm currently facing an issue in the project I'm working on where I have two different queries:

query Screen1() {
  eventList: anEventQuery(…) { … }
}

query Screen2() {
  eventList: someOtherEventQuery(…) { … }
}

Unfortunately, this leads to the generated Mock in my module ending up with only one of those two variants available.

Is there a way to do this short of ensuring that the top-level fields and aliases in my queries are unique?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that have a question which should be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions