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

Graphene v3 support? #45

Closed
hyusetiawan opened this issue Aug 2, 2020 · 14 comments
Closed

Graphene v3 support? #45

hyusetiawan opened this issue Aug 2, 2020 · 14 comments

Comments

@hyusetiawan
Copy link

is there any plan to support v3 of graphene?
if it's already in the roadmap, i can help to test :)

@qeternity
Copy link

I was playing around with this a bit earlier but I couldn't quite get it working. I fear I'm not familiar enough with the recent changes.

@qeternity
Copy link

@prokher is this on your roadmap by any chance? or are you guys staying on v2?

@MJoshua25
Copy link

Any update?

@prokher
Copy link
Member

prokher commented Dec 5, 2020

As far as I see, v3 is not released yet. I see only the beta version v3.0.0.b6 available. Once the final/stable release is here, I will try to migrate DjangoChannelsGraphqlWs if possible.

BTW, didn't they implemented the WebSocket protocol with subscriptions on their own? 🤔 Honestly speaking, I think that the functionality implemented here in DjangoChannelsGraphqlWs should be implemented in the Graphene one day.

@prokher prokher changed the title v3 support? Graphene v3 support? Jan 18, 2021
@AntonOfTheWoods
Copy link

@prokher , it appears they have a desire to wait for two daughter projects, who have pinned to graphene<3. So waiting for Godot... It would be really awesome to have Graphene v3 support here (I agree natively would be better), as there are cool libraries (RxDB graphql sync, for example) that require modern graphql.

@JamieOWilliams
Copy link

With the two daughter projects now supporting graphene v3, it looks like we are finally heading towards a release: graphql-python/graphene#1127 (comment). Are there still plans for DjangoChannelsGraphqlWs to support graphene v3?

@prokher
Copy link
Member

prokher commented Sep 22, 2021

As far as I see, Graphene v3 is still in beta. We will proceed as soon as stable version is here.

@qeternity
Copy link

@prokher graphene is still in beta, but should release shortly as the rest of the ecosystem has now gained v3 support. The API is not going to change at this point, so I don't see a reason why this project shouldn't plot a course for v3.

I will take another look at this tomorrow and see what the state of the universe is.

@Ouradze
Copy link

Ouradze commented Nov 15, 2021

Graphene v3 has just been released :D https://github.com/graphql-python/graphene/releases/tag/v3.0.0

@marcinocto
Copy link

Would be great to have this!
Looks like the graphql-ws also doesn't support graphene 3 so at the moment there is no option for Graphene3 and WS integration
graphql-python/graphql-ws#66
graphql-python/graphql-ws#49

@Luferov
Copy link

Luferov commented Feb 6, 2022

Apparently, integration with graphene 3 is not so simple.

@marcinocto
Copy link

Apparently, integration with graphene 3 is not so simple.

Definitely agree, I ended up having a custom solution for our use-case which circumvents the GraphQL engine on return of the message. I can see how it is tricky with the new Graphene3 ExecutionResult and it seems like it might be hard to have a generic solution, one good example might be how https://github.com/jaydenwindle/graphene-subscriptions is working with Rx Subjects.

@tomjohnhall
Copy link

I've spent a bit of time trying to do this refactor, got some of the way there but hit a wall when using broadcast on a Subscription - can't seem to receive the broadcast messages on the django channels consumer 🤷‍♂️ Here's the branch I'm working on:

https://github.com/tomjohnhall/DjangoChannelsGraphqlWs/tree/gql-graphene-3

Concepts like asyncio and Rx are new to me so this is mostly trial and error. If anyone with a better grasp is interested in taking a look or comparing their own implementation, please do!

@prokher
Copy link
Member

prokher commented Apr 27, 2023

The version 1.0.0rc1 is available in PyPI, it supports latest Django & Graphene, so I am closing this. Feel free to reopen or file a new issue in case of problems.

@prokher prokher closed this as completed Apr 27, 2023
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

No branches or pull requests

10 participants