Skip to content

amitsaha/flask-graphql-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a simple Flask application demonstrating the usage of Flask-graphql. In addition to querying the data, it demonstrates updating the existing data as well as file uploads (mutation).

Build Status

Usage

Star the server:

$ pip install -r requirements.txt
$ python app.py

You should now be able to send queries to the graphql/ endpoint.

Examples

Please see test_app.py for basic examples.

GraphiQL interface

Thanks to graphql-flask, by default the web application also exposes a graphiql endpoint. Open http://127.0.0.1:5000/graphiql in your browser to play with it.

Example:

GraphiQL

Development

Run tests using py.test.

About

A demo application showing usage of graphql-flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages