...

Text file src/go.mongodb.org/mongo-driver/testdata/crud/v1/write/findOneAndDelete-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": "FindOneAndDelete when one document matches with collation",
    21      "operation": {
    22        "name": "findOneAndDelete",
    23        "arguments": {
    24          "filter": {
    25            "_id": 2,
    26            "x": "PING"
    27          },
    28          "projection": {
    29            "x": 1,
    30            "_id": 0
    31          },
    32          "sort": {
    33            "x": 1
    34          },
    35          "collation": {
    36            "locale": "en_US",
    37            "strength": 2
    38          }
    39        }
    40      },
    41      "outcome": {
    42        "result": {
    43          "x": "ping"
    44        },
    45        "collection": {
    46          "data": [
    47            {
    48              "_id": 1,
    49              "x": 11
    50            },
    51            {
    52              "_id": 3,
    53              "x": "pINg"
    54            }
    55          ]
    56        }
    57      }
    58    }
    59  ]
    60}

View as plain text