Skip to content

GraphQL Playground

The GraphQL Playground is an interactive, in-browser GraphQL IDE that allows you to explore the API, test queries and mutations, and view the schema documentation.

Access the Playground

You can access the GraphQL Playground at:

https://jiujitero-api.onrender.com/graphql

Features

  • πŸ” Schema Explorer: Browse the complete GraphQL schema
  • πŸ“ Auto-completion: IntelliSense for queries and mutations
  • πŸ“š Documentation: Built-in docs for all types, queries, and mutations
  • 🎯 Query History: Keep track of your previous queries
  • πŸ” Authentication: Test authenticated endpoints with JWT tokens

How to Use

  1. Open the GraphQL Playground
  2. Write your query or mutation in the left panel
  3. Click the β€œPlay” button to execute
  4. View the results in the right panel

Example Queries

Get All Academies

query GetAcademies {
academies {
id
name
professor
location
phone
image
}
}

Get Users

query GetUsers {
users {
id
name
email
roles
isActive
}
}

Login

mutation Login {
login(loginInput: {
email: "test@example.com"
password: "yourPassword"
}) {
token
user {
id
name
email
}
}
}

Authentication

For protected endpoints, you need to add the JWT token in the HTTP Headers:

{
"Authorization": "Bearer YOUR_JWT_TOKEN_HERE"
}

Try it Now