Skip to main content

Home > git-documentdb > CollectionOptions

CollectionOptions type#

Options for Collection constructor

Signature:
export declare type CollectionOptions = {
namePrefix?: string;
debounceTime?: number;
idGenerator?: () => string;
};

Remarks#

  • namePrefix: Automatically generated _id has a specified prefix in the collection.

  • debounceTime: put/insert/update operations for the same document are debounced by specified milliseconds in the collection. Default is -1 (do not debounce).