...

Text file src/go.mongodb.org/mongo-driver/testdata/crud/v1/write/insertOne.json

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

     1{
     2  "data": [
     3    {
     4      "_id": 1,
     5      "x": 11
     6    }
     7  ],
     8  "tests": [
     9    {
    10      "description": "InsertOne with a non-existing document",
    11      "operation": {
    12        "name": "insertOne",
    13        "arguments": {
    14          "document": {
    15            "_id": 2,
    16            "x": 22
    17          }
    18        }
    19      },
    20      "outcome": {
    21        "result": {
    22          "insertedId": 2
    23        },
    24        "collection": {
    25          "data": [
    26            {
    27              "_id": 1,
    28              "x": 11
    29            },
    30            {
    31              "_id": 2,
    32              "x": 22
    33            }
    34          ]
    35        }
    36      }
    37    }
    38  ]
    39}

View as plain text