...

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

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

     1{
     2  "data": [
     3    {
     4      "_id": 1,
     5      "string": "PING"
     6    },
     7    {
     8      "_id": 2,
     9      "string": "ping"
    10    }
    11  ],
    12  "minServerVersion": "3.4",
    13  "serverless": "forbid",
    14  "tests": [
    15    {
    16      "description": "Distinct with a collation",
    17      "operation": {
    18        "name": "distinct",
    19        "arguments": {
    20          "fieldName": "string",
    21          "collation": {
    22            "locale": "en_US",
    23            "strength": 2
    24          }
    25        }
    26      },
    27      "outcome": {
    28        "result": [
    29          "PING"
    30        ]
    31      }
    32    }
    33  ]
    34}

View as plain text