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/graphqlFeatures
- π 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
- Open the GraphQL Playground
- Write your query or mutation in the left panel
- Click the βPlayβ button to execute
- 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"}