N+1 problem with nested resolvers, do I need ORM
I am still experimenting with Ariadne and one the projects has almost reached production level (currently in closed beta-testing). But one thing I am still having worries about is the nested resolvers and N+1 problem. So, coming from Django world with it's powerful (and…
Integration with AWS Chalice
Hi all, I'm looking to see if anyone has already done the work to hook up ariande with chalice? Searching didn't find anything at this stage. I could just go through the 'other technologies' section to add what I need, but I was hoping someone else had already done it.
What if I need to add some headers to HTTP response? In my case it is Access-Control-Allow-Origin to disable CORS protection, but we can also consider other cases when non-standard HTTP Response headers are required. I overrode GraphQL.graphql_http_server method, and it works.…
Custom Directives with Federation?
Hey there, I'm curious if it's possible to use custom directives with federation in Ariadne. I've read over the schema directives section of the docs a few times and my extended class off of SchemaDirectiveVisitor just needs to be registered with make_executable_schema, as per…
How to use background tasks with Starlette?
I'm hoping to avoid any use of Celery at the moment. In Starlette's docs they give two ways to add background tasks: 1. Via Graphene: https://www.starlette.io/graphql/ 2. Via a JSON response https://www.starlette.io/background/ …
Issues with subscriptions in python 3.8 and Ariadne 0.10?
I am running Ariadne in with Starlette and Uvicorn inside a python-alpine docker container. In the past I have successfully written and executed subscriptions on a previous version of python (3.7 I believe). I am starting a new project with python 3.8 and subscription counters…
Check request headers once, potentially return graphql error response
For each incoming request, I need to look at its headers and potentially return a typical error response: It seems simple, but every solution I could come up with has some issues: • using an ariadne middleware - this allows me to return the error response easily, but the…
I'm trying to implement dynamic introspection like in tartiflette, but I can't find a way to exclude fields during introspection using directives. The general idea looks like this: User should not see helloAdmin field in the schema obtained from the introspection, but Admin…
Single transaction with mutations.
Let's say we want to execute multiple mutations in a single request and we want to all of them on the same dB.transaction (all or nothing). Obviously, I don't know that resolvers are executed in parallell and gathered at the end.. if I do this with asyncpg it raises the…