PyconAr GraphQL Playground
is a playground for anyone who wants to learn graphql interactively.
The repo has different kind of query resolvers, backed by
- DB Models
- JSON Files
- REST Calls
This is to demonstrate that there are no hard constraints on implementation details. We're free to do whatever fits better in our tech stack.
{
nextTalks {
name
description
speaker {
name
bio
}
}
}
{
allTalks {
speaker {
name
}
}
}
{
findPeopleOpenToHiring {
name
email
interests
}
}
{
findOpenPositions {
title
url
company {
name
website
technologies
}
}
}
{
findPeopleInterestedIn(interest: "GraphQL") {
name
email
openToJobOffers
}
}
{
searchTalks(keywords: ["microservicios", "microservices"]) {
name
description
video
}
}
To run the server follow these steps:
python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt
export FLASK_APP="pyconar.app:create_app()"
flask run
If you have docker installed you can start it with
docker build . -t pyconar-graphql
docker run -it -p 5050:5050 pyconar-graphql
You can also deploy to heroku with just one click
/
GraphiQL IDE with Explorer Plugin/dark
Playground IDE with dark theme and multitab docs navigation/explorer
Api Schema Visualizer with graphqql voyager`
- IDE in Browser. To explore the API interactively
- Interactive Graph Explorer. A visually compelling view of the API
- Mutation Example. Useful Patterns to alter data
- Error Handling. HTTP, what's that?
GraphQL is a new paradigm in API Design that is rapidly growing in popularity. Although it's not a replacement of REST, it does help solve some of its most frequent problems. I hope that exploring the API you can get a taste of the benefits of GraphQL and perhaps motivate you to write your own GraphQL PoC for your next big project.
- DoS Protection
- Remove custom GraphiQL html as it has bugs
- Improve Mutations Auth