mongoc_find_and_modify_opts_get_fields() — MongoDB C Driver 1.9.2

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

# mongoc_find_and_modify_opts_get_fields()

## Synopsis

    void
    mongoc_find_and_modify_opts_get_fields (
       const mongoc_find_and_modify_opts_t *opts, bson_t *fields);

## Parameters

- `opts`: A mongoc_find_and_modify_opts_t.
- `fields`: An uninitialized `bson_t`.

## Description

Copy to `fields` the BSON document that was set with mongoc_find_and_modify_opts_set_fields(), or initializes `fields` with an empty BSON document.

Created using Sphinx 1.6.5, based on Sphinx Readable Theme.