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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec5088871716c98b847c7b84f02021f6ca7938161dc3b95274edc7478b1880a0 |
|
MD5 | da327dab620ee69a1e25ea396283ddad |
|
BLAKE2b-256 | 7fd316bbf566889a01a89b1d44b237d3c36c7e3a878532c5e348325975767e72 |
Close
Hashes for bareasgi_graphql_next-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d1355df1144a3820db02c79855ff72982043353dd34883426f623c18560efe3 |
|
MD5 | 6d756e0c361e0881a39877ea69e36104 |
|
BLAKE2b-256 | 91d61805ddfd420f29b216cbcb62f6060e389bf9f7d9b50c12f1cc59fca6f8a2 |