apollo-kotlin
apollo-kotlin copied to clipboard
@defer: opt-out batching for Queries containing @defer
At least for now we won't support batching in a @defer scenario, so let's automatically opt-out any operation using @defer from batching.
To implement this we would need a way to know if an operation is using @defer, at run-time. Here's a related issue #3985 which is about having the ability to do so.
Revisiting/reframing this one a bit:
- We don't know if or how a backend will support both features at the same time
- If they do in the future we can implement support for it (or at least, throw a clear error message if it's not possible to use both at the same time)
- For now I don't think we should do anything. Closing the ticket for now and a specific one can be open later if
@defer+ batching is a thing.