Skip to content

How to fix collisions #52

@zmay2030

Description

@zmay2030

Hello,
Trying to figure out how we should approach this issue. If we are rewriting a scalar field to an object, it replaces all fields with the name.

So we want to rewrite the the user's name scalar to an object, it will also replace the one for city

query {
   user {
     name
   }
   city {
      name
   }
}

I know we can filter by fragmentMatchCondition or queryMatchCondition. But that would mean we expect the user to either use fragments or give consistent names for their queries? Let me know if this makes sense, I feel like I may be missing something...

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