Cmdlets for MongoDB

Build 25.0.9434

UseFindAPI Parameter (Connect-MongoDB Cmdlet)

Specifies whether MongoDB queries using the method db.collection.find(), allow retrieval of documents from a specific collection based on defined criteria.

Syntax

Connect-MongoDB -UseFindAPI bool

Data Type

bool

Default Value

true

Remarks

When UseFindAPI is set to true, the 本製品 uses the new Find Command API instead of the older OP_QUERY interface. Therefore, this must be set to true in order to query DocumentDB clusters using db.collection.find(). If set to false, the 本製品 can revert to the legacy find operation, such as OP_QUERY, particularly when working with older versions of MongoDB servers.

This property is useful for filtering, sorting, and manipulating data in MongoDB's flexible document structure.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434