Usage Tips:
- Click on a keyword to enable inline editing.
- Click inside a code block to copy (excludes comments).
- Use the button to view examples.
- Click outside to collapse all examples.
Visualize Tool
+---------------------------------------------------------------+
| 1. Change Schema -> Introspection -> Copy Introspection Query |
| 2. Paste query |
| 3. Display |
+---------------------------------------------------------------+
Sample Output:
TO-DO
Ref: graphql-voyager
Basic Commands
# Get fields from schema
curl -s <TARGET>:3000/graphql -H "Content-Type: application/json" -d '{"query":"{__schema{queryType{name,fields{name,description}}}}"}' | jq .
Sample Output:
TO-DO
# Get types name
curl -s <TARGET>:3000/graphql -H "Content-Type: application/json" -d '{"query":"{__schema{types{name}}}"}' | jq .
Sample Output:
TO-DO
# Get fields of type (e.g. User)
curl -s <TARGET>:3000/graphql -H "Content-Type: application/json" -d '{"query":"{__type(name:\"User\"){name,fields{name}}}"}' | jq .
Sample Output:
TO-DO
# Dump data from type (e.g. User type with fields username and password)
curl -s <TARGET>:3000/graphql -H "Content-Type: application/json" -d '{"query":"{User{username,password}}"}' | jq .
Sample Output:
TO-DO