{
  "runOn": [
    {
      "minServerVersion": "4.3.4"
    }
  ],
  "data": [
    {
      "_id": 1,
      "x": 11
    },
    {
      "_id": 2,
      "x": 22
    }
  ],
  "collection_name": "DeleteOne_hint",
  "tests": [
    {
      "description": "DeleteOne with hint string",
      "operations": [
        {
          "object": "collection",
          "name": "deleteOne",
          "arguments": {
            "filter": {
              "_id": 1
            },
            "hint": "_id_"
          },
          "result": {
            "deletedCount": 1
          }
        }
      ],
      "expectations": [
        {
          "command_started_event": {
            "command": {
              "delete": "DeleteOne_hint",
              "deletes": [
                {
                  "q": {
                    "_id": 1
                  },
                  "hint": "_id_",
                  "limit": 1
                }
              ]
            }
          }
        }
      ],
      "outcome": {
        "collection": {
          "data": [
            {
              "_id": 2,
              "x": 22
            }
          ]
        }
      }
    },
    {
      "description": "deleteOne with hint document",
      "operations": [
        {
          "object": "collection",
          "name": "deleteOne",
          "arguments": {
            "filter": {
              "_id": 1
            },
            "hint": {
              "_id": 1
            }
          },
          "result": {
            "deletedCount": 1
          }
        }
      ],
      "expectations": [
        {
          "command_started_event": {
            "command": {
              "delete": "DeleteOne_hint",
              "deletes": [
                {
                  "q": {
                    "_id": 1
                  },
                  "hint": {
                    "_id": 1
                  },
                  "limit": 1
                }
              ]
            }
          }
        }
      ],
      "outcome": {
        "collection": {
          "data": [
            {
              "_id": 2,
              "x": 22
            }
          ]
        }
      }
    }
  ]
}
