---
name: "mongoc_cursor_get_batch_size"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_cursor_get_batch_size"
---

# mongoc\_cursor\_get\_batch\_size(3)

## SYNOPSIS

```
uint32_t
mongoc_cursor_get_batch_size (const mongoc_cursor_t *cursor);
```

## PARAMETERS

- •

  **cursor**: A *mongoc\_cursor\_t*.

## DESCRIPTION

Retrieve the cursor's batch size, the maximum number of documents returned per round trip to the server. A batch size of zero means the cursor accepts the server's maximum batch size.

See *Cursor Batches* in the MongoDB Manual.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
