import{DocumentAction as o}from"../common/constant";import{QueryBuilder as r}from"./Query";var n=function(){function i(t,e){this.collectionName=t;this.id=e}i.prototype.update=function(t){var e=new r(this.collectionName).where({_id:String(this.id)}).limit(1);return e.update(t)};i.prototype.set=function(t){var e=new r(this.collectionName).where({_id:String(this.id)}).limit(1);return e.set(t)};i.prototype.remove=function(){var t=new r(this.collectionName).where({_id:String(this.id)}).limit(1);return t.remove()};i.prototype.get=function(){var t=new r(this.collectionName).where({_id:String(this.id)}).limit(1);var e=t.get();e.action=o.query;return e};return i}();export{n as DocumentBuilder};