bash ./run.sh OR
Run App Run profile in PyCharm
* Serving Flask app 'app.py'
* Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:8000
Press CTRL+C to quit
curl -X POST \
-H "Content-Type: application/json" \
--data '{ "query": "{ hello }" }' \
http://localhost:8000/graphql{
"data": {
"hello": "Hello, GraphQL!"
}
}query hi {
hello
}
query bye {
goodbye
}
query full_meeting {
hello
goodbye
items {
name
}
}
query getItems {
items {
name
quantity
}
}
mutation addNewItem {
addItem(name: "Oranges", quantity: 500) {
name
quantity
}
}