UNPKG

ravendb

Version:
25 lines 959 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AggregationRawDocumentQuery = void 0; const AggregationQueryBase_js_1 = require("./AggregationQueryBase.js"); const index_js_1 = require("../../../Exceptions/index.js"); class AggregationRawDocumentQuery extends AggregationQueryBase_js_1.AggregationQueryBase { _source; constructor(source, session) { super(session); this._source = source; if (!source) { (0, index_js_1.throwError)("InvalidArgumentException", "Source cannot be null"); } } _getIndexQuery(updateAfterQueryExecuted) { return this._source.getIndexQuery(); } emit(eventName, queryResult) { if (eventName === "afterQueryExecuted") { this._source.emit(eventName, queryResult); } } } exports.AggregationRawDocumentQuery = AggregationRawDocumentQuery; //# sourceMappingURL=AggregationRawDocumentQuery.js.map