ariadne
ariadne copied to clipboard
Python library for implementing GraphQL servers using schema-first approach.
This task is opposite to #21, eg: ``` type_defs = """ input UserInput { contactEmail } """ resolvers = { "UserInput": { "contactEmail": resolve_to('contact_email'), }, } ``` Alternatively, we would...
Ariadne is based on idea of schema [SDL](https://graphql.org/learn/schema/) being the source of truth and so it is not generated from python code, like Graphene does. There are very good reasons...
_Originally posted by @salwator in https://github.com/mirumee/ariadne/pull/61_
### Context When using `https:///graphql` endpoint instead of `https:///graphql/` Ariadne sends a `307` redirect to the trailing-slash one. ### Expected behavior Initial scheme (`http` or `https`) should be respected in...
Hello, I'm on the latest ariadne version (0.16) and I'm fairly certain by now that directive support is a bit broken. Given a schema ``` extend schema @link(url: "https://specs.apollo.dev/federation/v2.0", import:...
Hi! Thanks for all the great work first of all. Really appreciated. I noticed that the documentation has that part about extensions: https://ariadnegraphql.org/docs/extensions#enabling-extensions I tried to use that feature and...
When using the 'legacy' handler, I can send custom errors from `on_connect` as [documented](https://github.com/mirumee/ariadne/blob/master/ariadne/asgi/handlers/graphql_ws.py#L250), because of the special Handling of `WebSocketConnectionError` at https://github.com/mirumee/ariadne/blob/a9cca4f6d8ce07b33d5fb5c6df991bd031d1168b/ariadne/asgi/handlers/graphql_ws.py#L250-L251 The same special handling is missing from...
`SchemaDirectiveVisitor` accept's `context` as one of constructors arguments, but it's not passed to directives at any point, and doesn't even exist when directive is initiated, making this arg's value always...
Its currently not possible to address many of [GraphiQL's parameters](https://graphiql-test.netlify.app/typedoc/modules/graphiql.html#graphiql-2) in `ExplorerGraphiQL`: Is this planned? I'm willing to do a diff.
We're trying to generate an OpenAPI schema using `starlette.schemas.SchemaGenerator`, however it does not include any definitions for ariadne. As per starlette's [docs](https://www.starlette.io/schemas/): > Schema generation works by inspecting the routes...