-
Notifications
You must be signed in to change notification settings - Fork 34
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
Provide basic support for graphene/graphene-sqlalchemy>=3.0 #63
base: master
Are you sure you want to change the base?
Conversation
I'm getting 'GraphQLResolveInfo' object has no attribute 'field_asts' connection_field.py using this on a simple query with a filter. Using
It seems they have renamed this property in GQL Python 3 |
Updated the |
Seems to be working for me, thanks! Furthermore, I have observed that with Graphene 3, Variable types for filter Variables seem to be parsed more strictly. Example:
Using graphene2, i could easily pass the desired ID of the parent as a string (which was convenient, because db primary keys are automatically converted to ID by graphene, which is a string). With graphene 3, this hack does not work anymore and I need to parse the string first, otherwise the query will fail. Maybe someone else has got this use case as well, so it might be helpful to note some "breaking" changes somewhere? Maybe it should also be noted, that graphene-sqlalchemy 3 itself implemented a solution for N+1 batching, so maybe the reference to the SQLalchemy package is no longer necessary? Other than that, everything seems to be working as usual. @art1415926535 any chance we could get a beta release on that for further testing? |
graphene has officially upgraded to v3, waiting for this to be merged. |
@art1415926535 any chance of getting this merged? |
Hi team. Just want to know when this could be merged? The work here has been fantastic, and I was looking to use this. |
@@ -18,7 +18,7 @@ | |||
|
|||
|
|||
requirements = [ | |||
'graphene-sqlalchemy>=2.1.0,<3', | |||
'graphene-sqlalchemy>=2.1.0', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be graphene-sqlalchemy>=3
because the GraphQLResolveInfo
was introduced in v3 and is not in 2.x
Graphene v3 officially supports SQLAlchemy v1.4 which has more intuitive syntax for database selects, deletes, and updates that are compatible with the upcoming The file changes in the PR seem straightforward. Is there a reason, such as an unforseen dependency, that is causing the delay? Of course these are COVID times too, so I'm hoping for the best. As others have stated, this has been a valuable addition. It was the final piece of the puzzle in our switch to using |
After looking at the code for the FilterableConnectionField Class, I see that dataloaders are supported by default, after some troubleshooting of the graphene documentation. Hooray. Is this applied to all fields, including those that are not filtered? I'm not that versed in some of the concepts in the file, hence the question. |
When this PR would be merged? Please comment |
@cooldudemcgeexl I've tried to contact I've opened an issue with the |
@palisadoes the graphene sqlalchemy repo is also almost unmaintained... an important fix pull request has been stuck waiting for approval for months now.
it will work as long as @cooldudemcgeexl does not modify the repo, which I hope he doesn't since its a great quick fix! |
Thanks. I'll do that as a stop gap. If neither |
I used @cooldudemcgeexl fix and everything seems to be working fine. The feature this library provides is mandatory but its sad to see this going unmaintained. |
@palisadoes For me personally, it's too late to move my projects over to Django, since they're too far in terms of development. One of the main developers of the graphql python core laid the issue out very well over here: Sadly, I don't think I have enough experience with graphene or sqlalchemy to start maintaining such a complex library ecosystem, but me and many others would like to help out and have some guidance by someone more experienced with SQLAlchemy. |
@erikwrede I'm willing to partially sponsor integration of this feature into |
@cooldudemcgeexl Would you be interested in doing some sponsored work to integrate |
@palisadoes I'd also partially sponsor getting this integrated |
@palisadoes How much of sponsor required for this? I would do partial sponsor as well. |
Thanks @dave-brennan and @riyasdeens @sabard and @PaulSchweizer are working on a requirements Google Doc to help determine the expected time and cost. Join us on the Let us know on the channel whether you'd like to participate in the doc and your comments on the pricing, etc. as the appropriate times approach. |
What's the status? 🙂 |
@Redysz planning is done. Implementation is in progress, please check the recent PRs in graphene-sqlalchemy. |
Please take a look here, for example: |
ResolveInfo
toGraphQLResolveInfo