-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for @defer directive #1287
Commits on Jul 26, 2018
-
Bootstrap apollo-server-defer package, cloning execute.js of graphql.js
It is easier to import everything first and trim it down from there.
Configuration menu - View commit details
-
Copy full SHA for 52b3844 - Browse repository at this point
Copy the full SHA 52b3844View commit details -
To make sure that the baseline implementation works, I copied and run tests from graphql.js
Configuration menu - View commit details
-
Copy full SHA for 2c3cb8e - Browse repository at this point
Copy the full SHA 2c3cb8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for cc7f24a - Browse repository at this point
Copy the full SHA cc7f24aView commit details -
Configuration menu - View commit details
-
Copy full SHA for dfbf04e - Browse repository at this point
Copy the full SHA dfbf04eView commit details -
Use the ExecutionContext to store observables that are returned from
deferred fields. Multiple observables from deferred fields will be merged and returned as a single observable.
Configuration menu - View commit details
-
Copy full SHA for c5c93b1 - Browse repository at this point
Copy the full SHA c5c93b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57707db - Browse repository at this point
Copy the full SHA 57707dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for e799392 - Browse repository at this point
Copy the full SHA e799392View commit details -
Fix types, temporarily turn off typescript strict mode
The issue here is that some errors stem from graphql.js which was written in flow. Eventually, we will import utility functions from graphql.js, instead from porting them over to typescript, so ignore them for now.
Configuration menu - View commit details
-
Copy full SHA for 20b6ccb - Browse repository at this point
Copy the full SHA 20b6ccbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43e4e97 - Browse repository at this point
Copy the full SHA 43e4e97View commit details -
Ensure that nested @defer's are resolved correctly
Reuse the same observer for all nested deferred fields, instead of creating a new Observable for each.
Configuration menu - View commit details
-
Copy full SHA for d51699b - Browse repository at this point
Copy the full SHA d51699bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f85595e - Browse repository at this point
Copy the full SHA f85595eView commit details -
Configuration menu - View commit details
-
Copy full SHA for abe6206 - Browse repository at this point
Copy the full SHA abe6206View commit details -
Configuration menu - View commit details
-
Copy full SHA for af73b35 - Browse repository at this point
Copy the full SHA af73b35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 396554d - Browse repository at this point
Copy the full SHA 396554dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f4224f - Browse repository at this point
Copy the full SHA 0f4224fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3189bd9 - Browse repository at this point
Copy the full SHA 3189bd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for bfdcfe5 - Browse repository at this point
Copy the full SHA bfdcfe5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 214378a - Browse repository at this point
Copy the full SHA 214378aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b2b198 - Browse repository at this point
Copy the full SHA 8b2b198View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c60495 - Browse repository at this point
Copy the full SHA 6c60495View commit details -
Stream deferred responses using multipart HTTP
Compared to websockets, this provides a much cleaner upgrade path for users who want @defer support, and has lower overhead. Changes also made to `apollo-link-http` into order to parse multipart responses according to the spec: https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html
Configuration menu - View commit details
-
Copy full SHA for 6cebaf6 - Browse repository at this point
Copy the full SHA 6cebaf6View commit details -
Ensure ordering of nested patches
This commit adds the concept of a PatchBundle, a recursive structure that expresses the ordering dependencies between patches.
Configuration menu - View commit details
-
Copy full SHA for 3dc9d20 - Browse repository at this point
Copy the full SHA 3dc9d20View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f979c9 - Browse repository at this point
Copy the full SHA 9f979c9View commit details -
Refactored runHttpQuery for backward compatibility
Other integration libraries depend on `HttpQueryResponse` interface, so instead of making breaking changes to it, I added `graphqlResponses` field that will be used for returning an AsyncIterable of response strings.
Configuration menu - View commit details
-
Copy full SHA for 7d0783f - Browse repository at this point
Copy the full SHA 7d0783fView commit details -
The build was previously failing because `execute.ts` was poorly typed and would fail under strict mode. Disable that first until I get around to refactoring flow code properly.
Configuration menu - View commit details
-
Copy full SHA for beeee71 - Browse repository at this point
Copy the full SHA beeee71View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca65031 - Browse repository at this point
Copy the full SHA ca65031View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7a68fe - Browse repository at this point
Copy the full SHA e7a68feView commit details -
Configuration menu - View commit details
-
Copy full SHA for a22e1ab - Browse repository at this point
Copy the full SHA a22e1abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81d9605 - Browse repository at this point
Copy the full SHA 81d9605View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80b6042 - Browse repository at this point
Copy the full SHA 80b6042View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75aad01 - Browse repository at this point
Copy the full SHA 75aad01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5457f02 - Browse repository at this point
Copy the full SHA 5457f02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 69623a3 - Browse repository at this point
Copy the full SHA 69623a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a30be2e - Browse repository at this point
Copy the full SHA a30be2eView commit details -
- apollo-server-core@2.1.0-alpha.5 - apollo-server-express@2.1.0-alpha.5 - apollo-server@2.1.0-alpha.5
Configuration menu - View commit details
-
Copy full SHA for 9cc6861 - Browse repository at this point
Copy the full SHA 9cc6861View commit details -
Configuration menu - View commit details
-
Copy full SHA for c323a99 - Browse repository at this point
Copy the full SHA c323a99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a9a48e - Browse repository at this point
Copy the full SHA 4a9a48eView commit details -
- apollo-server-core@2.1.0-alpha.6 - apollo-server-express@2.1.0-alpha.6 - apollo-server@2.1.0-alpha.6
Configuration menu - View commit details
-
Copy full SHA for 4d2bb03 - Browse repository at this point
Copy the full SHA 4d2bb03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cbe08f - Browse repository at this point
Copy the full SHA 6cbe08fView commit details -
Apollo Server variants must explicitly enable defer
Otherwise any @defer directives will be ignored.
Configuration menu - View commit details
-
Copy full SHA for d4fe896 - Browse repository at this point
Copy the full SHA d4fe896View commit details -
Configuration menu - View commit details
-
Copy full SHA for 996a3f7 - Browse repository at this point
Copy the full SHA 996a3f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 228425e - Browse repository at this point
Copy the full SHA 228425eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 67655b0 - Browse repository at this point
Copy the full SHA 67655b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3215ef - Browse repository at this point
Copy the full SHA c3215efView commit details -
- apollo-server-core@2.1.0-alpha.7 - apollo-server-express@2.1.0-alpha.7 - apollo-server-hapi@2.1.0-alpha.7 - apollo-server-koa@2.1.0-alpha.7 - apollo-server@2.1.0-alpha.7
Configuration menu - View commit details
-
Copy full SHA for a05184d - Browse repository at this point
Copy the full SHA a05184dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 31884cd - Browse repository at this point
Copy the full SHA 31884cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2a0ed6 - Browse repository at this point
Copy the full SHA b2a0ed6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2362db - Browse repository at this point
Copy the full SHA e2362dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32d993f - Browse repository at this point
Copy the full SHA 32d993fView commit details -
- apollo-server-core@2.1.0-alpha.8 - apollo-server-express@2.1.0-alpha.8 - apollo-server-hapi@2.1.0-alpha.8 - apollo-server-koa@2.1.0-alpha.8 - apollo-server-micro@2.1.0-alpha.8 - apollo-server@2.1.0-alpha.8
Configuration menu - View commit details
-
Copy full SHA for ae21050 - Browse repository at this point
Copy the full SHA ae21050View commit details
Commits on Jul 27, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 3297e21 - Browse repository at this point
Copy the full SHA 3297e21View commit details
Commits on Aug 3, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 0250b30 - Browse repository at this point
Copy the full SHA 0250b30View commit details
Commits on Aug 6, 2018
-
Configuration menu - View commit details
-
Copy full SHA for f95fae6 - Browse repository at this point
Copy the full SHA f95fae6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 01bf9ae - Browse repository at this point
Copy the full SHA 01bf9aeView commit details -
- apollo-server-core@2.1.0-alpha.9 - apollo-server-express@2.1.0-alpha.9 - apollo-server-hapi@2.1.0-alpha.9 - apollo-server-koa@2.1.0-alpha.9 - apollo-server-micro@2.1.0-alpha.9 - apollo-server@2.1.0-alpha.9
Configuration menu - View commit details
-
Copy full SHA for 368e3af - Browse repository at this point
Copy the full SHA 368e3afView commit details -
Merge branch 'master' into defer-support
# Conflicts: # packages/apollo-server-core/package.json # packages/apollo-server-core/src/__tests__/runQuery.test.ts # packages/apollo-server-core/tsconfig.json # packages/apollo-server-hapi/src/hapiApollo.ts
Configuration menu - View commit details
-
Copy full SHA for 4275fce - Browse repository at this point
Copy the full SHA 4275fceView commit details -
Configuration menu - View commit details
-
Copy full SHA for c444c45 - Browse repository at this point
Copy the full SHA c444c45View commit details
Commits on Aug 7, 2018
-
Configuration menu - View commit details
-
Copy full SHA for e556111 - Browse repository at this point
Copy the full SHA e556111View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a16e44 - Browse repository at this point
Copy the full SHA 8a16e44View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fc3d2a - Browse repository at this point
Copy the full SHA 0fc3d2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for dd1ff85 - Browse repository at this point
Copy the full SHA dd1ff85View commit details
Commits on Aug 8, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 1fa4105 - Browse repository at this point
Copy the full SHA 1fa4105View commit details -
Configuration menu - View commit details
-
Copy full SHA for 927ca65 - Browse repository at this point
Copy the full SHA 927ca65View commit details
Commits on Aug 9, 2018
-
- apollo-server-core@2.1.0-alpha.10 - apollo-server-express@2.1.0-alpha.10 - apollo-server-hapi@2.1.0-alpha.10 - apollo-server-koa@2.1.0-alpha.10 - apollo-server-micro@2.1.0-alpha.10 - apollo-server@2.1.0-alpha.10
Configuration menu - View commit details
-
Copy full SHA for 7e28c89 - Browse repository at this point
Copy the full SHA 7e28c89View commit details