jasonkuhrt / graphql-request

Minimal GraphQL client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Include a new option to ignore operationName to avoid parsing for extraction.

robertobadalamenti opened this issue · comments

Perceived Problem

Avoid the computational cost of parsing the document and then re-transforming to a string in cases where the operationName is not needed or not used.

Ideas / Proposed Solution(s)

Add a new option "ignoreOperationName" or similar to avoid parsing and extracting the operationName.

I have published the following pull request # 645, which implements the solution proposed above.