Skip to content

Releases: ExpediaGroup/graphql-component

v2.1.3

10 Nov 16:09
Compare
Choose a tag to compare
  • [FIXED] - modified automatic pruning mechanism during delegation to use parent types/parent type fields instead of getFieldDef()

v2.1.2

04 Nov 19:37
Compare
Choose a tag to compare
  • [FIXED] - non-root resolvers being executed twice in certain delegate situations
  • [FIXED] - resolver exclusion now works identical to type exclusion. Only root types (Query, Mutation, Subscription) and/or fields on root types can be excluded, which was not the case for resolver functions prior to this fix.

v2.1.1

30 Oct 19:33
Compare
Choose a tag to compare
  • update @apollo/federation to ^0.20.4

v2.1.0

29 Oct 23:12
Compare
Choose a tag to compare
  • [FEATURE] delegateToComponent() - automatically prune fields from the delegated document selection set that are not defined in the schema (component) being delegated to. This will reduced potential down stream errors as well as ensures no unintended fields are forwarded and all fields forwarded can be resolved by the schema be delegated to. This feature addresses some edge cases around variable forwarding that were not addressed in prior patch releases 2.0.4 and 2.0.5.

v2.0.5

27 Oct 19:03
Compare
Choose a tag to compare
  • Reinstated variable passing to the sub-document created by delegateToComponent(). All variable values will be forwarded to the delegated operation, but only the variable definitions for input types or types that are in the target schema will be forwarded. This prevents errors in certain delegate situations while also allowing valid resolution of args passed as variables.

v2.0.4

21 Oct 23:45
Compare
Choose a tag to compare
  • Fixed the error path on errors surfaced through delegateToComponent() calls such that error path takes into account the already traversed path and exclusions
  • Variables from an outer operation are no longer forwarded to the sub operation created by delegateToComponent() this is to avoid passing along variables for types that dont exist in the schema being delegated to.

v2.0.3

12 Oct 23:45
Compare
Choose a tag to compare
  • Fixed individual field exclusions during import - individual field exclusions will no longer modify the original resolver map that is being imported.
  • Fixed/tightened up argument forwarding when using delegateToComponent() - only arguments the target field is expecting will be extracted from the calling resolver or from the args object provided to delegateToComponent() depending on the situation. Previously, there were some unintended argument leakage in certain edge cases.

v2.0.2

06 Oct 01:09
Compare
Choose a tag to compare

Fixed importing directives

v2.0.1

30 Sep 19:02
Compare
Choose a tag to compare
  • Fixed error merging to iteratively consider the merge path to properly merge errors in complex situations such as lists

v1.3.6

30 Sep 19:18
Compare
Choose a tag to compare
  • Fixed error merging in execute() to iteratively consider the merge path to properly merge errors in complex situations such as lists