Skip to content

Query Name Rewriter #15

@irfanalef2060

Description

@irfanalef2060

First of all this is not an issue, I need a little bit of help.

I didn't find a rewriter for the query name.

Example:
Let say we have query like this which is being used in many clients
query query getUserById($id: String!) { userById(id: $id) { ... } }

I want to change my query to this
query getCurrentUserByID($id: String!) { userById(id: $id) { ... } }

So I want that whenever client query getUserById, it should map to getCurrentUserByID. I think currently there is no option for query name. So is there any problem with writing a rewriter for query name? Have you tried this? Because I am thinking to write a query rewriter for this.

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