...

Text file src/go.mongodb.org/mongo-driver/testdata/atlas-data-lake-testing/find.json

Documentation: go.mongodb.org/mongo-driver/testdata/atlas-data-lake-testing

     1{
     2  "collection_name": "driverdata",
     3  "database_name": "test",
     4  "tests": [
     5    {
     6      "description": "Find with projection and sort",
     7      "operations": [
     8        {
     9          "object": "collection",
    10          "name": "find",
    11          "arguments": {
    12            "filter": {
    13              "b": {
    14                "$gt": 5
    15              }
    16            },
    17            "projection": {
    18              "_id": 0
    19            },
    20            "sort": {
    21              "a": 1
    22            },
    23            "limit": 5
    24          },
    25          "result": [
    26            {
    27              "a": 5,
    28              "b": 6,
    29              "c": 7
    30            },
    31            {
    32              "a": 6,
    33              "b": 7,
    34              "c": 8
    35            },
    36            {
    37              "a": 7,
    38              "b": 8,
    39              "c": 9
    40            },
    41            {
    42              "a": 8,
    43              "b": 9,
    44              "c": 10
    45            },
    46            {
    47              "a": 9,
    48              "b": 10,
    49              "c": 11
    50            }
    51          ]
    52        }
    53      ],
    54      "expectations": [
    55        {
    56          "command_started_event": {
    57            "command": {
    58              "find": "driverdata"
    59            }
    60          }
    61        }
    62      ]
    63    }
    64  ]
    65}

View as plain text