Apollo-server: Defer & Stream now that they are part of graphql.js

Created on 30 Nov 2020  路  3Comments  路  Source: apollographql/apollo-server

Hi, now that Defer & Stream are becomming a part og graphql.js (https://github.com/graphql/graphql-js/pull/2319)(given still an experimental branch) what's the process for integrating it into apollo server / client?

All 3 comments

Looking forward to this one! I'm seeing it on GQL libs for Java, Scala and Ruby now too.

This solves one of my biggest gripes with GQL - your response performance is limited to the performance characteristics of the slowest resolver dependency unless you issue multiple queries which really limits the ability of GQL to serve as a near perfect abstraction over legacy APIs etc.

we now have a reference server implementation for the first transport spec for @defer and @stream IncrementalDelivery

it will involve handling partial responses, which is not going to be easy with the way apollo-server-core is decoupled from output, which worked fine up until now because responses weren't iterative.

the express-grapql PR makes it look easy because of how tightly we're coupled to express

you'd think we could follow a similar pattern to multipart upload, however IncrementalDelivery specifies a request protocol, not a response protocol

your response performance is limited to the performance characteristics of the slowest resolver dependency unless you issue multiple queries which really limits the ability of GQL to serve as a near perfect abstraction over legacy APIs etc.

this, so much! hoping for such wide adoption this year, that graphql developers will be taking this feature for granted in ~2-3 years 馃槅

seems that @abernix has an effort afoot to rearchitect for this feature and others, as well as provide more flexibility! very neat

https://github.com/apollographql/apollo-server/issues/3184

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dupski picture dupski  路  3Comments

bryanerayner picture bryanerayner  路  3Comments

danilobuerger picture danilobuerger  路  3Comments

dbrrt picture dbrrt  路  3Comments

stevezau picture stevezau  路  3Comments