mongoc_cursor_current() — MongoDB C Driver 1.9.2

- MongoDB C Driver 1.9.2 »
- API Reference »
- mongoc_cursor_t

# mongoc_cursor_current()

## 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`.

Created using Sphinx 1.6.5, based on Sphinx Readable Theme.