...

Text file src/go.mongodb.org/mongo-driver/testdata/crud/v1/write/deleteOne-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      "_id": 3,
    13      "x": "pINg"
    14    }
    15  ],
    16  "minServerVersion": "3.4",
    17  "serverless": "forbid",
    18  "tests": [
    19    {
    20      "description": "DeleteOne when many documents matches with collation",
    21      "operation": {
    22        "name": "deleteOne",
    23        "arguments": {
    24          "filter": {
    25            "x": "PING"
    26          },
    27          "collation": {
    28            "locale": "en_US",
    29            "strength": 2
    30          }
    31        }
    32      },
    33      "outcome": {
    34        "result": {
    35          "deletedCount": 1
    36        },
    37        "collection": {
    38          "data": [
    39            {
    40              "_id": 1,
    41              "x": 11
    42            },
    43            {
    44              "_id": 3,
    45              "x": "pINg"
    46            }
    47          ]
    48        }
    49      }
    50    }
    51  ]
    52}

View as plain text