---
name: "mongoc_session_opts_get_snapshot"
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_session_opts_get_snapshot"
---

# mongoc\_session\_opts\_get\_snapshot(3)

## SYNOPSIS

```
bool
mongoc_session_opts_get_snapshot (const mongoc_session_opt_t *opts);
```

Return true if this session is configured for snapshot reads, false by default. See *mongoc\_session\_opts\_set\_snapshot()*.

## PARAMETERS

- •

  **opts**: A *mongoc\_session\_opt\_t*.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
