Skip to content

Query Name with Fragments #601

@NghiaTranUIT

Description

@NghiaTranUIT

Description

We noticed a small inconvenience with how GraphQL requests are labeled in the “Query Name” field. Many of our GraphQL documents are formatted with fragments first and the operation (query/mutation) last. In these cases, Proxyman appears to populate “Query Name” with the first line of the document (often a fragment ...) rather than the actual operation name.

It would be really helpful if Proxyman could parse the GraphQL document and use the operation name for “Query Name”, instead of relying on the first line.
Image

Acceptance Criteria

  • Fix this fragment issue
  • Unit Test for the new change

Metadata

Metadata

Assignees

Labels

bugSomething isn't working✅ DoneTicket is resolved

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions