"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 u in o)if(Object.prototype.hasOwnProperty.call(o,u))e[u]=o[u]};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.PullCommand=void 0;var AbstractCommand_1=require("../AbstractCommand");var QueryRequest_1=require("../QueryRequest");var PullCommand=function(n){__extends(r,n);function r(t){var e=n.call(this)||this;e.value=t;return e}Object.defineProperty(r.prototype,"operator",{get:function(){return"$pull"},enumerable:false,configurable:true});r.prototype.stringify=function(){return this.stringifyWithKey("")};r.prototype.stringifyWithKey=function(t){var e;return new QueryRequest_1.QueryRequest((e={},e[t]=this.value,e)).stringify()};return r}(AbstractCommand_1.QueryUpdateArrayCommand);exports.PullCommand=PullCommand;