{
  "description": "getMore",
  "schemaVersion": "1.0",
  "createEntities": [
    {
      "client": {
        "id": "client0",
        "observeEvents": [
          "commandStartedEvent"
        ]
      }
    },
    {
      "database": {
        "id": "database0",
        "client": "client0",
        "databaseName": "test"
      }
    },
    {
      "collection": {
        "id": "collection0",
        "database": "database0",
        "collectionName": "driverdata"
      }
    }
  ],
  "tests": [
    {
      "description": "A successful find event with getMore",
      "operations": [
        {
          "object": "collection0",
          "name": "find",
          "arguments": {
            "filter": {
              "a": {
                "$gte": 2
              }
            },
            "sort": {
              "a": 1
            },
            "batchSize": 3,
            "limit": 4
          }
        }
      ],
      "expectEvents": [
        {
          "client": "client0",
          "events": [
            {
              "commandStartedEvent": {
                "command": {
                  "find": "driverdata",
                  "filter": {
                    "a": {
                      "$gte": 2
                    }
                  },
                  "sort": {
                    "a": 1
                  },
                  "batchSize": 3,
                  "limit": 4
                },
                "commandName": "find",
                "databaseName": "test"
              }
            },
            {
              "commandStartedEvent": {
                "command": {
                  "getMore": {
                    "$$type": [
                      "int",
                      "long"
                    ]
                  },
                  "collection": {
                    "$$type": "string"
                  },
                  "batchSize": 1
                },
                "commandName": "getMore",
                "databaseName": "cursors"
              }
            }
          ]
        }
      ]
    }
  ]
}
