...

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

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

     1{
     2  "data": [
     3    {
     4      "_id": 1,
     5      "x": "ping"
     6    }
     7  ],
     8  "minServerVersion": "3.4",
     9  "serverless": "forbid",
    10  "tests": [
    11    {
    12      "description": "Aggregate with collation",
    13      "operation": {
    14        "name": "aggregate",
    15        "arguments": {
    16          "pipeline": [
    17            {
    18              "$match": {
    19                "x": "PING"
    20              }
    21            }
    22          ],
    23          "collation": {
    24            "locale": "en_US",
    25            "strength": 2
    26          }
    27        }
    28      },
    29      "outcome": {
    30        "result": [
    31          {
    32            "_id": 1,
    33            "x": "ping"
    34          }
    35        ]
    36      }
    37    }
    38  ]
    39}

View as plain text