0.1.0-alpha.1 • Published 7 years ago

apollo-link-patch v0.1.0-alpha.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

title: apollo-link-patch

description: Merge patches sent back from partial query responses

DeferPatchLink

This link adds the ability to merge patches from a deferred query into the initial response that was sent. It emits a partial result for every patch received.

Note: Apollo Client already implements the logic to merge patches internally. DeferPatchLink duplicates that logic so that we can parse deferred queries outside Apollo Client.

DeferPatchLink must be layered on top of a HttpLink that supports reading a Multipart HTTP response, that emits data for each segment.

0.1.0-alpha.1

7 years ago