# 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
