...

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

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

     1data:
     2    - {_id: 1, x: 11}
     3
     4tests:
     5    -
     6        description: "InsertOne with a non-existing document"
     7        operation:
     8            name: "insertOne"
     9            arguments:
    10                document: {_id: 2, x: 22}
    11
    12        outcome:
    13            result:
    14                insertedId: 2
    15            collection:
    16                data:
    17                    - {_id: 1, x: 11}
    18                    - {_id: 2, x: 22}

View as plain text