UNPKG

ravendb

Version:
24 lines 703 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GroupByCountToken = void 0; const QueryToken_js_1 = require("./QueryToken.js"); class GroupByCountToken extends QueryToken_js_1.QueryToken { _fieldName; constructor(fieldName) { super(); this._fieldName = fieldName; } static create(fieldName) { return new GroupByCountToken(fieldName); } writeTo(writer) { writer.append("count()"); if (!this._fieldName) { return; } writer.append(" as ") .append(this._fieldName); } } exports.GroupByCountToken = GroupByCountToken; //# sourceMappingURL=GroupByCountToken.js.map