nightroman / Mdbc

MongoDB Cmdlets for PowerShell
Apache License 2.0
141 stars 16 forks source link

Update-MdbcData with options #85

Closed projectje closed 9 months ago

projectje commented 9 months ago

Can i run the Update-MdbcData command with options ? For example

$options = @{
            'upsert' = $true
        }

and then

Update-MdbcData -Filter $filter -Update $update -Options $options?

update: ah wait it should be IsUpsert i think

nightroman commented 9 months ago

Yes, it's IsUpsert, see https://mongodb.github.io/mongo-csharp-driver/2.5/apidocs/html/T_MongoDB_Driver_UpdateOptions.htm