GraphQL Injection: Enumerate Types Definition

GraphQLExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

Enumerate the definition of interesting types using the following GraphQL query, replacing "User" with the chosen type

javascript
{__type (name: "User") {name fields{name type{name kind ofType{name kind}}}}}

Comments

No comments yet.