Closed benjie closed 2 weeks ago
Latest commit: 809c7eedbaedb66ec4194fd456970a9d44ff11bf
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Description
Fixes #2216
returns table
andout
arguments count as arguments but not as input arguments (exceptinout
args which count as both). Previously we calculated the number of required arguments asnumberOfArguments - numberOfArgumentsWithDefaults
; but this calculation should instead have beennumberOfInputArguments - numberOfArgumentsWithDefaults
- i.e. it only applies to input arguments. This is now resolved.The result is that fewer arguments are now seen as required, making this a non-breaking change (though it may result in some arguments losing their non-null status, that is safe for existing queries).
Performance impact
Negligible.
Security impact
Doubtful.
Checklist
yarn lint:fix
passes.yarn test
passes.RELEASE_NOTES.md
file (if one exists).