...

Text file src/go.mongodb.org/mongo-driver/testdata/crud/v1/write/replaceOne-collation.json

Documentation: go.mongodb.org/mongo-driver/testdata/crud/v1/write

     1{
     2  "data": [
     3    {
     4      "_id": 1,
     5      "x": 11
     6    },
     7    {
     8      "_id": 2,
     9      "x": "ping"
    10    }
    11  ],
    12  "minServerVersion": "3.4",
    13  "serverless": "forbid",
    14  "tests": [
    15    {
    16      "description": "ReplaceOne when one document matches with collation",
    17      "operation": {
    18        "name": "replaceOne",
    19        "arguments": {
    20          "filter": {
    21            "x": "PING"
    22          },
    23          "replacement": {
    24            "_id": 2,
    25            "x": "pong"
    26          },
    27          "collation": {
    28            "locale": "en_US",
    29            "strength": 2
    30          }
    31        }
    32      },
    33      "outcome": {
    34        "result": {
    35          "matchedCount": 1,
    36          "modifiedCount": 1,
    37          "upsertedCount": 0
    38        },
    39        "collection": {
    40          "data": [
    41            {
    42              "_id": 1,
    43              "x": 11
    44            },
    45            {
    46              "_id": 2,
    47              "x": "pong"
    48            }
    49          ]
    50        }
    51      }
    52    }
    53  ]
    54}

View as plain text