apollo-kotlin icon indicating copy to clipboard operation
apollo-kotlin copied to clipboard

@defer: opt-out batching for Queries containing @defer

Open BoD opened this issue 3 years ago • 1 comments

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.

BoD avatar Feb 21 '22 10:02 BoD

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.

BoD avatar Apr 01 '22 09:04 BoD

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.

BoD avatar Aug 26 '22 10:08 BoD