> A server MUST accept POST requests, and MAY accept other HTTP methods, such as GET. - [GraphQL Over HTTP](https://graphql.github.io/graphql-over-http/draft/#sec-Request) - GET endpoint ```js GET /graphql?query={yourQueryHere} GET /graphql?query={__schema{types{name}}} GET /graphiql?query={__schema{types{name}}} GET /graphql?query=query%20%7B%20user(id:%221%22)%20%7B%20id%20name%20%7D%20%7D ``` - POST endpoint ```js POST /graphql/v1 HTTP/1.1 Host: example.com Content-Type: application/json { "query": "query { user { id name } }" } ``` Check if errors are visible.
?query={__schema}
?query={}
?query={thisdefinitelydoesnotexist}Source: GraphQL Injection/README.md in PayloadsAllTheThings. From PayloadsAllTheThings by Swissky and contributors. MIT License, Copyright (c) 2019 Swissky.