function and(...rules): CheckableRule;
Defined in: packages/graphql-casl/src/combinators.ts:197
Passes when every operand passes.
...Rule[]
Rule
The operands; each must be checkable.
CheckableRule
A checkable rule.
Operands are evaluated in parallel; on failure the first failing operand's error is thrown.
Use chain when the operands must run in order, or when a later one is expensive and should be skipped once an earlier one has already failed.
Mutation: { publish: and(isAuthor, isNotBanned) }
There was an error while loading. Please reload this page.