MCPcopy
hub / github.com/mongodb/node-mongodb-native / isCapped

Method isCapped

src/collection.ts:603–606  ·  view source on GitHub ↗

* Returns if the collection is a capped collection * * @param options - Optional settings for the command

(options?: OperationOptions)

Source from the content-addressed store, hash-verified

601 * @param options - Optional settings for the command
602 */
603 async isCapped(options?: OperationOptions): Promise<boolean> {
604 const { capped } = await this.options(options);
605 return Boolean(capped);
606 }
607
608 /**
609 * Creates an index on the db and collection collection.

Callers 3

testCappedFunction · 0.80

Calls 1

optionsMethod · 0.95

Tested by 1

testCappedFunction · 0.64