ocaml-graphql-server icon indicating copy to clipboard operation
ocaml-graphql-server copied to clipboard

@defer and @stream directive support?

Open sgrove opened this issue 5 years ago • 1 comments

Looks like these two directives will go into the spec soon - any thoughts on how OGS should approach adding them in?

sgrove avatar Jul 16 '20 23:07 sgrove

Between the two of them, I think @defer will be the easiest to add, as it doesn't require anything special from the resolver. To support @stream, the resolver for a list field needs to be able to return a stream of values, which is more tricky. It seems like there are still a lot of details to be worked out for @defer and @stream in the spec though.

andreas avatar Jul 24 '20 11:07 andreas