graphql-tools icon indicating copy to clipboard operation
graphql-tools copied to clipboard

fix(mergeDeep): handle `undefined` sources correctly

Open ardatan opened this issue 7 months ago • 4 comments

Fixes https://github.com/ardatan/graphql-tools/issues/7011

The following inputs and outputs are corrected;

  • mergeDeep([{a:2} undefined]) - Any nullish values should be ignored so it should return {a:2}
  • mergeDeep([]) - no sources should return undefined
  • mergeDeep([undefined]) - no sources should return undefined

ardatan avatar Mar 07 '25 12:03 ardatan