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

Method validateCollection

src/admin.ts:143–151  ·  view source on GitHub ↗

* Validate an existing collection * * @param collectionName - The name of the collection to validate. * @param options - Optional settings for the command

(
    collectionName: string,
    options: ValidateCollectionOptions = {}
  )

Source from the content-addressed store, hash-verified

141 * @param options - Optional settings for the command
142 */
143 async validateCollection(
144 collectionName: string,
145 options: ValidateCollectionOptions = {}
146 ): Promise<Document> {
147 return await executeOperation(
148 this.s.db.client,
149 new ValidateCollectionOperation(this, collectionName, options)
150 );
151 }
152
153 /**
154 * List the available databases

Callers 2

Calls 1

executeOperationFunction · 0.90

Tested by

no test coverage detected