File: change_streams.md

package info (click to toggle)
mongo-cxx-driver 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 13,832 kB
  • sloc: cpp: 61,365; python: 1,436; sh: 356; xml: 253; perl: 215; makefile: 21
file content (23 lines) | stat: -rw-r--r-- 499 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Obtain a Change Stream

## From a Client

@snippet api/mongocxx/examples/change_streams/from_client.cpp Example

## From a Database

@snippet api/mongocxx/examples/change_streams/from_database.cpp Example

## From a Collection

@snippet api/mongocxx/examples/change_streams/from_collection.cpp Example

# Use a Change Stream

## Basic Usage

@snippet api/mongocxx/examples/change_streams/basic.cpp Example

## With Pipeline

@snippet api/mongocxx/examples/change_streams/with_pipeline.cpp Example