Skip to main content

GraphQL support for the bareASGI framework

Project description

bareASGI-graphql-next

Graphql support for bareASGI (read the documentation)

The controller provides a GraphQL GET and POST route, a WebSocket subscription server, and a Graphiql view.

Installation

Install from the pie shop.

pip install bareasgi-graphql-next

Usage

You can register the graphql controller with the add_graphql_next function.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bareasgi-graphql-next-3.8.0.tar.gz (14.9 kB view hashes)

Uploaded Source

Built Distribution

bareasgi_graphql_next-3.8.0-py3-none-any.whl (17.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page