collection.d.ts 585 B

1234567891011121314151617
  1. import { DocumentReference } from './document';
  2. import { Query, QueryOption, UpdateOption } from './query';
  3. import Aggregation from './aggregate';
  4. export declare class CollectionReference extends Query {
  5. protected _transactionId: string;
  6. readonly name: string;
  7. doc(docID: string | number): DocumentReference;
  8. add(data: any): Promise<{
  9. ids?: string[];
  10. id?: string;
  11. inserted?: number;
  12. ok?: number;
  13. requestId: string;
  14. }>;
  15. aggregate(): Aggregation;
  16. options(apiOptions: QueryOption | UpdateOption): CollectionReference;
  17. }