aggregate.d.ts 795 B

1234567891011121314151617181920212223242526272829
  1. export default class Aggregation {
  2. _db: any;
  3. _request: any;
  4. _stages: any[];
  5. _collectionName: string;
  6. constructor(db?: any, collectionName?: any);
  7. end(): Promise<any>;
  8. unwrap(): any[];
  9. done(): {
  10. [x: number]: any;
  11. }[];
  12. _pipe(stage: any, param: any): this;
  13. addFields(param: any): this;
  14. bucket(param: any): this;
  15. bucketAuto(param: any): this;
  16. count(param: any): this;
  17. geoNear(param: any): this;
  18. group(param: any): this;
  19. limit(param: any): this;
  20. match(param: any): this;
  21. project(param: any): this;
  22. lookup(param: any): this;
  23. replaceRoot(param: any): this;
  24. sample(param: any): this;
  25. skip(param: any): this;
  26. sort(param: any): this;
  27. sortByCount(param: any): this;
  28. unwind(param: any): this;
  29. }