Skip to content

Graphene>=3.0 Integration #10

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

Open
2 tasks
melvinkcx opened this issue Mar 14, 2020 · 1 comment
Open
2 tasks

Graphene>=3.0 Integration #10

melvinkcx opened this issue Mar 14, 2020 · 1 comment
Assignees

Comments

@melvinkcx
Copy link
Owner

With graphene==3.0b1 being released, we can start looking into the integration with it.

For graphql-utilities to work with graphene>=3.0, we need to solve these issues:

  • How to define cost in graphene, since schemas are defined using classes
  • How to pass custom context value and ExecutionContext class for execution in graphene
@melvinkcx melvinkcx self-assigned this Mar 14, 2020
@melvinkcx
Copy link
Owner Author

I started to integrate this lib with graphene but came across a roadblock. Defining fields with custom directive is not possible due to the lack of support in graphql-core. I created an issue here to gather the wisdom of the community.

After some conversation with the Graphene community on Slack, I realized there is an on-going discussion about supporting such feature.

So far there isn't a good workaround that doesn't require us to rewrite the logic in our CostAnalysisVisitor class yet

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

1 participant