EagerOperation.js 370 B

123456789101112131415161718
  1. const QueryBuilderOperation = require('../QueryBuilderOperation');
  2. class EagerOperation extends QueryBuilderOperation {
  3. constructor(name, opt) {
  4. super(name, opt);
  5. this.expression = null;
  6. this.filters = null;
  7. }
  8. onAdd(builder, args) {
  9. this.expression = args[0];
  10. this.filters = args[1];
  11. return true;
  12. }
  13. }
  14. module.exports = EagerOperation;