Remove labels and merge deferred fragments under the same object #64
robrichard
announced in
Architectural Decision Records
Replies: 1 comment
-
This has been addressed by the new response format described in #69 We decided against merging defers at the same level or label, but deferred fields are no longer duplicated in this response format which addresses the underlying reason this was suggested |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context
Taken from #52 (comment).
There has been discussion around the necessity of labels and how merging deferred fragments would be more inline with the user expectations of GraphQL.
Proposal:
path
.This change should remove the need for clients to use labels or hacks like an aliased __typename to identity payloads.
Caveats
RFC is one possible way to solve for this problem
Example A: Multiple defers on the same object are merged
Example B: Spec guarantees that only one payload is sent per path:
An improved merging algorithm, as proposed in graphql/graphql-js#3820 can give a result that does not do any deduplication, but guarantees all payloads have unique paths:
Related
Beta Was this translation helpful? Give feedback.
All reactions