8000 Send a mutation with POST, also in GET mode by hugo-vrijswijk · Pull Request #829 · gemini-hlsw/clue · GitHub
[go: up one dir, main page]

Skip to content

Send a mutation with POST, also in GET mode - #829

Closed
hugo-vrijswijk wants to merge 1 commit into
mainfrom
fix/f8-get-mode-sends-mutations
Closed

hugo-vrijswijk wants to merge 1 commit into
mainfrom
fix/f8-get-mode-sends-mutations

Conversation

@hugo-vrijswijk
Copy link
Copy Markdown
Contributor

GraphQL-over-HTTP forbids GET for a mutation operation. An intermediary can cache, log or replay such a request.

The new methodFor helper reads the operation type from the document. For a mutation it returns POST and overrides the configured GET mode. A query and a subscription keep the configured method.

GraphQL-over-HTTP forbids GET for a mutation operation. An intermediary can cache, log or replay such a request.

The new `methodFor` helper reads the operation type from the document. For a mutation it returns POST and overrides the configured GET mode. A query and a subscription keep the configured method.
@mergify mergify Bot added the scalajs label Aug 21, 2026
@mergify
mergify Bot commented Aug 21, 2026
Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@hugo-vrijswijk
Copy link
Copy Markdown
Contributor Author

Closing in favour of #830

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0