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 support #2288

Closed
dfee opened this issue Sep 23, 2017 · 6 comments
Closed

GraphQL support #2288

dfee opened this issue Sep 23, 2017 · 6 comments
Labels

Comments

@dfee
Copy link
Contributor

dfee commented Sep 23, 2017

I built a GraphQL component for aiohttp named aiohttp-graphql (i.e. pip install aiohttp-graphql).

The premise is simple: Just provide a schema and attach the view to the route:

from aiohttp_graphql import GraphQLView
from .schema import Schema

# ... get an app from somewhere (i.e. app = web.Application())

GraphQLView(app, schema=Schema)

And then you'll be able to access both GraphQL and GraphiQL on /graphql. There are many configuration options, so RTFD.

I just wanted to put this here for future users. Thanks aio-libs folks for maintaining good libraries to build on top of. Cheers –

@kxepal
Copy link
Member

kxepal commented Sep 23, 2017

What's wrong to have it as standalone extension which provides extras to integrate graphql with aiohttp? You there depends on aiohttp in anyway. What kind of support aiohttp have to provide?

@dfee
Copy link
Contributor Author

dfee commented Sep 23, 2017

That’s exactly what it is. This project is not a fork and pull request, I just wanted the community to be aware of it. I’m not sure of what they best place to share this info, so I created this issue.

@kxepal
Copy link
Member

kxepal commented Sep 23, 2017

Sorry, I took your issue a bit different way. How about docs? We have there section about third parties and extensions. Feels like the best place to share.

@dfee
Copy link
Contributor Author

dfee commented Sep 24, 2017

Cool. As this project gets sucked into the graphql-python org (fingers crossed), I'll submit a PR to add it to the third parties section.

@asvetlov
Copy link
Member

@dfee feel free to make a PR for mentioning the library in our third parties.

I'm closing the issue -- the tracker is overwhelmed by bug reports and feature proposals.
I'm striving to reduce opened issues counter. Sure, you do understand me.

dfee added a commit to dfee/aiohttp that referenced this issue Oct 23, 2017
dfee added a commit to dfee/aiohttp that referenced this issue Oct 24, 2017
dfee pushed a commit to dfee/aiohttp that referenced this issue Oct 24, 2017
asvetlov pushed a commit that referenced this issue Oct 27, 2017
* Fix tutorial example in Templates subject (#2390)

Added aiohttp-graphql

Ref: #2288

fixed typo

* Update third_party.rst
@lock
Copy link

lock bot commented Oct 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs.
If you feel like there's important points made in this discussion, please include those exceprts into that [new issue].
[new issue]: https://github.com/aio-libs/aiohttp/issues/new

@lock lock bot added the outdated label Oct 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants