For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update

MongoDB update operation.

Task version: 1.0.1

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

UpdateOptions : UpdateOptions

Update single or multiple documents.

Possible values:

  • UpdateOne: Update single or multiple documents.

  • UpdateMany: Update single or multiple documents.

Default: 0 Example: UpdateOptions.UpdateOne

UpdateString : String

The value(s) to be updated to document(s).

Default: - Example: "{ $set: { 'foo': 'updated'} }"

InputType : InputType

Input type.

Possible values:

  • Filter: Input type.

  • Filters: Input type.

  • File: Input type.

Default: 0 Example: InputType.Filter

Filter : String

A single filter to be processed.

Default: - Example: {'foo':'bar'}

Filters : DocumentValues[]

An array of filter(s) to be processed one by one.

Default: - Example: {{'foo':'bar'}, {'bar':'foo'}}

File : String

The file containing filter.

Default: - Example: c:\temp\file.json

Task Result

Name
Description

Success : Boolean

Update complete. Example: true

Count : Int64

Count of updated documents. Example: 1

Task Changelog

Changelog for Task Frends.MongoDB.Update.

[1.0.1] - 2023-11-23

Fixed

  • Fixed dll error when importing the Task to Frends by adding local dll reference to the project file.

[1.0.0] - 2022-11-01

Added

  • Initial implementation

Last updated

Was this helpful?