I'd like our graphql support to move out into being a third party package.
We should then document:
Questions:
strawberryasgi app:
@strawberry.field forever : 💗 !
Just commenting to add some updated links to libraries that can provide GraphQL support to Starlette applications. These will be in the Starlette documentation as well:
strawberryasgi app:
@strawberry.fieldforever : 💗 !
Dead Link
strawberryasgi app:
@strawberry.fieldforever : 💗 !Dead Link
Updated link is here: https://strawberry.rocks/docs/integrations/asgi ☺️
How easy would it be to replace the existing solution with any of the suggested alternatives? It looks like the current solution is quite strongly coupled to graphene, or am I wrong?
The idea would be to output the schema as plain text or json to a third party library?
I would gladly see even over-simplified example to appear in the documentation because its not clear to me how everything is interacting. For example I can see in strawberry's case that:
The GraphQL app accepts two options at the moment:
- schema: mandatory, the schema created by
strawberry.Schema.
Seems like a problem since most people using starlette probably used graphene to generate their schema. I'm personally "stuck" with graphene as I used graphene-sqlalchemy, but maybe I missed a better option to interface my SQLAlchemy models with GraphQL.
I found an example in Ariadne's documentation: Starlette integration where they use the string version of the schema (aka type_defs). There is a discussion about this here.
Most helpful comment
Updated link is here: https://strawberry.rocks/docs/integrations/asgi ☺️