UNPKG

@a11ywatch/core

Version:
8 lines (7 loc) 496 B
import type { Collection, Document } from "mongodb"; export declare const collectionUpsert: (source: any, [collection, shouldUpdate, shouldDelete]: [ Collection<Document>, boolean | "upsert" | "many", any? ], config?: any) => Promise<void | import("mongodb").DeleteResult | import("mongodb").InsertOneResult<Document> | import("mongodb").UpdateResult<Document>>; export declare const collectionIncrement: (source: any, collection: any, searchProps: Record<any, any>) => Promise<any>;