applyBarrier
since v0.11
Applies the Barrier to the Query or Mutation. After operation start it checks the Barrier .$active
status and postpones the execution if the Barrier is active. After the Barrier is deactivated
, it resumes the execution of the operation.
Formulae
applyBarrier(operation, { barrier })
ts
import { applyBarrier } from '@farfetched/core';
applyBarrier(operation, { barrier });
Arguments
applyBarrier(operations, { barrier })
since v0.12
ts
import { applyBarrier } from '@farfetched/core';
applyBarrier([operation1, operation2], { barrier });