Skip to content

Commit a1a2c25

Browse files
committed
GET must not be used for mutations
1 parent 7863941 commit a1a2c25

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/Appendix A -- Persisted Documents.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ Note: A common alternative pattern is to use a dedicated URL for each _persisted
160160
operation_ (e.g.
161161
`https://example.com/graphql/sha256:71f7dc5758652baac68e4a10c50be732b741c892ade2883a99358f52b555286b`).
162162

163+
GET requests MUST NOT be used for executing mutation operations. If a mutation
164+
operation is indicated by the value of {operationName} and the GraphQL Document
165+
identified by {documentId}, the server MUST respond with error status code `405`
166+
(Method Not Allowed) and halt execution. This restriction is necessary to
167+
conform with the long-established semantics of safe methods within HTTP.
168+
163169
#### Canonical Parameters
164170

165171
Parameters SHOULD be provided in the order given in the list above, any optional

0 commit comments

Comments
 (0)