Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphql subscription support added #1091

Closed
wants to merge 14 commits into from
Closed

Graphql subscription support added #1091

wants to merge 14 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 14, 2020

Hi,

I've upgaded graphene to v3 and added support for GraphQl subscriptions.

That allows one to use subscribe to graphql via websocket.

AsyncioExecutor gets deprecated as Graphene dropped support for the executor argument. I've still added the library from graphene v2.3.2 for someone interested in modifying the code.

@ghost
Copy link
Author

ghost commented Nov 14, 2020

I've dropped AsyncioExecutor and added a variable to switch between graphene's v3 Schema.execute_async and Schema.execute.

@coryvirok
Copy link

@NatachaMeow nice! Looking forward to having this merged!

I've been working around this with a monkey patch. You'll likely need to change the format_graphql_error import here. graphql-core 3 no longer has that method but I've found that monkey patching in format_error works.

@JayH5 JayH5 added the graphql label Feb 4, 2021
@JayH5
Copy link
Member

JayH5 commented Feb 5, 2021

Thank you for creating this pull request. We have decided to deprecate GraphQL support within Starlette itself so I am going to close this pull request. See #619.

@JayH5 JayH5 closed this Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants