FRENDS⁴ Common Components : Frends.Common.MongoDB.UpdateDocuments

UpdateDocuments updates 0...n documents in a MongoDB collection. The documents to update are determined by the filter strings, and the values to update (and what they will be updated to) are determined by the update string.

Input Parameters

  • Mongo database connection information
    • ServerAddress (string)
    • ServerPort (string)
    • Database (string)
    • CollectionName (string)
    • Username (string)
    • Password (string)
  • FilterString (string)
    • JSON format: { 'foo':'bar', 'bar': 'foo' }
  • UpdateString (string)
    • JSON/BSON format: {$set: {bar:'foobar'}}

Output Result

A long value with the amount of updated documents


Known issues

  • None