GraphQL support for the bareASGI framework
Project description
# bareASGI-graphql-next
Support for GraphQL.
The controller provides a GraphQL GET and POST route, a WebSocket subscription server, and a Graphiql view.
## Installation
Install from the pie shop.
```bash
pip install bareasgi-graphql-next
```
## Usage
You can register the graphql controller with the `add_graphql_next` function.
```python
from bareasgi import Application
from bareasgi_graphql_next import add_graphql_next
import graphql
# Get the schema ...
schema = graphql.GraphQLSchema( ... )
import uvicorn
app = Application()
add_graphql_next(app, schema)
uvicorn.run(app, port=9009)
```
Support for GraphQL.
The controller provides a GraphQL GET and POST route, a WebSocket subscription server, and a Graphiql view.
## Installation
Install from the pie shop.
```bash
pip install bareasgi-graphql-next
```
## Usage
You can register the graphql controller with the `add_graphql_next` function.
```python
from bareasgi import Application
from bareasgi_graphql_next import add_graphql_next
import graphql
# Get the schema ...
schema = graphql.GraphQLSchema( ... )
import uvicorn
app = Application()
add_graphql_next(app, schema)
uvicorn.run(app, port=9009)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for bareasgi_graphql_next-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fe4199a6486a4515d03ad53eb1abdb181c4a4fc91ab0acaf36f980dd821c1fd |
|
MD5 | a780c4b6368987d81edd001bef1a48d2 |
|
BLAKE2b-256 | 4748cc7bff8b559ef49fecb5533943f0b877b4da3f4bda2bf393a6b8517e1ff0 |
Close
Hashes for bareasgi_graphql_next-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce21d03cada0afa2a7cf53f7c0af5991474d8adf54b1dc648d46d95f60246110 |
|
MD5 | ab54d88ced310605aedb916f7f778f82 |
|
BLAKE2b-256 | 5233ca6a2fa4fed80ee760537d196f57c5cf76bd24570b97695f69ff047021d9 |