UNPKG

soda-angular

Version:
12 lines (11 loc) 350 B
import { WhereGroup } from "./where-group"; export class WhereClause extends WhereGroup { toString() { if (this.Components.length > 0) { const joinedComponents = this.Components.map(x => x.toString()) .join(" "); return `$where=${joinedComponents}`; } return ""; } }