---
name: "mongoc_cursor_current"
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_current"
---

# mongoc\_cursor\_current(3)

## SYNOPSIS

```
const bson_t *
mongoc_cursor_current (const mongoc_cursor_t *cursor);
```

## PARAMETERS

- •

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

## DESCRIPTION

Fetches the cursors current document or **NULL** if there has been an error.

## RETURNS

A *bson\_t* that should not be modified or freed or **NULL**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
