Cmdlets for MongoDB

Build 24.0.9060

Select-MongoDB Cmdlet

Parameters   Output Objects  

Searches MongoDB data.

Syntax

Select-MongoDB [parameters]

Remarks

The Select-MongoDB cmdlet allows you to use a syntax similar to SQL SELECT statements to search MongoDB data.

$conn = Connect-MongoDB -Server '127.0.0.1' -Port 27017 -Database 'test' -User 'test' -Password 'test'
Select-MongoDB -Connection $conn -Table "[CData].[Sample].Customers" -Columns @("City","CompanyName") -Where "Country='US'"

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060