DeferredJsonMerger
Utility class for merging GraphQL JSON payloads received in multiple chunks when using the @defer
directive.
Each call to merge will merge the given chunk into the merged Map, and will also update the mergedFragmentIds Set with the value of its path
and label
field.
The fields in data
are merged into the node found in merged at path
(for the first call to merge, the payload is copied to merged as-is).
errors
in incremental items (if present) are merged together in an array and then set to the errors
field of the merged Map, at each call to merge. extensions
in incremental items (if present) are merged together in an array and then set to the extensions/incremental
field of the merged Map, at each call to merge.