Skip to content

Commit

Permalink
👌 Integrate feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Jul 5, 2021
1 parent b50ecd5 commit 12521e6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ function runFullASTValidation(
);
}
} else {
// Check that no more than one field is passed to the operation
const fields = variables.filter(
(arg) => isArgumentValidType(arg, 'variable') && !isMathNode(arg)
);
Expand Down Expand Up @@ -675,7 +676,7 @@ function runFullASTValidation(
})
);
} else {
if (functions.length > 1) {
if (functions.length > nodeOperation.requiredReferences.length) {
errors.push(
getMessageFromId({
messageId: 'tooManyFirstArguments',
Expand Down

0 comments on commit 12521e6

Please sign in to comment.