"use strict";var __extends=this&&this.__extends||function(){var n=function(r,t){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a))e[a]=o[a]};return n(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(exports,"__esModule",{value:true});exports.ExprCommand=void 0;var AbstractCommand_1=require("../AbstractCommand");var AggregateRequest_1=require("../AggregateRequest");var ExprCommand=function(n){__extends(r,n);function r(t){var e=n.call(this)||this;e.commands=new AggregateRequest_1.AggregateRequest(t).toJSON();return e}r.prototype.stringify=function(){return{$expr:this.commands}};return r}(AbstractCommand_1.EvaluationQueryCommand);exports.ExprCommand=ExprCommand;