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
Added a custom server example using Flask #126
Conversation
Codecov Report
@@ Coverage Diff @@
## master #126 +/- ##
=======================================
Coverage 93.88% 93.88%
=======================================
Files 60 60
Lines 2013 2013
=======================================
Hits 1890 1890
Misses 123 123 Continue to review full report at Codecov.
|
Thanks for the review @tbsf |
ded937a
to
7811f12
Compare
Ok, I updated the example. It's working now with Ariadne 0.3.0 and includes the recomendations of @tbsf |
I'm wondering if this shouldn't be 3rd party library, eg. I'm not strongly opinionated but I'm worrying that we may be setting an expectation to the folk that our docs will eventually cover all Python web frameworks, and that's not going to work. |
This is just my experience, but finding a Flask example was a deciding factor in giving this a try instead of sticking with Apollo. I didn't even notice there was also documentation for Django. Regardless of the route you choose to go down for documentation, I definitely suggest calling more attention to the ability to create a custom servers and mention that Django and Flask are supported in the README itself. See Apollo's list of integrations for example: https://github.com/apollographql/apollo-server#installation-integrations |
@tbsf this is excellent feedback, I haven't considered this. Thanks! |
I don't see the need for a 3rd party library at the moment. It's only about 20 lines of code which are needed and a package for these lines seems to be an overkill and would remind me of some npm packages. On the other side, I agree that it will be impossible to have a example for each web framework. And if a lot of framework specific examples are in the docs, issues about the framework integration will pop up which are difficult to solve if the maintainers are not working with these frameworks. |
- Renamed custom-servers to framework-integrations - Reworded the intro paragraph for framework integrations - Updated the titles
@jrast thank you for help! I'll close this PR and open my own that includes |
See issue #125