sanic-graphql icon indicating copy to clipboard operation
sanic-graphql copied to clipboard

Adds GraphQL support to your Sanic app.

Results 13 sanic-graphql issues
Sort by recently updated
recently updated
newest added

When I add the code shown in the example and point my browser to the URL the GraphiQL web page is displayed but an error stating Method POST not allowed...

This library is pinned on 2.x versions of graphql-core, and was last updated at Jun 27, 2020. Is this repo dead?

This is too bad. There is no complete example and document, which is very unfriendly to newcomers. I have never been exposed to graphql before. Do you have any good...

I have a minimal async example ```python from graphene import ObjectType, String, Schema from graphql.execution.executors.asyncio import AsyncioExecutor from sanic import Sanic from sanic_graphql import GraphQLView class Query(ObjectType): hello = String(name=String(default_value="stranger"))...

While doing normal REST request, the following code works without issue however, when it comes to GraphQL, it seems like the middleware only handles 'request' but not 'response' ``` @app.middleware('response')...

I'm using the graphql context to pass (potentially) shared resources, like database connections, to the schema resolvers. These resources eventually need to be cleaned up(i.e. closing connections). What's the best...

What's the appropriate way to inject values into the context on a per-request basis? That is, I can statically set context values when I add the route, but is there...

Hey, I'm testing sonic-graphql and I've noticed that when I install it, it tries to install `graphql-core>=2.1rc1` but installs `graphql-core 2.0` instead https://pastebin.com/raw/BhAyEWCd which then makes sanic-graphql fail on :...

Use Sanic-CORS extension instead which is mature and flexible

What would be needed to support GraphQL subscriptions? Like in [this link](http://dev.apollodata.com/tools/#GraphQL-subscriptions)