|
| 1 | +# Obtain a Collection |
| 2 | + |
| 3 | +@snippet examples/api/mongocxx/examples/collections/obtain.cpp Example |
| 4 | + |
| 5 | +# Collection Operations |
| 6 | + |
| 7 | +## Drop a Collection |
| 8 | + |
| 9 | +@snippet examples/api/mongocxx/examples/collections/drop.cpp Example |
| 10 | + |
| 11 | +## Rename a Collection |
| 12 | + |
| 13 | +@snippet examples/api/mongocxx/examples/collections/rename.cpp Example |
| 14 | + |
| 15 | +## Set a Read Concern |
| 16 | + |
| 17 | +@snippet examples/api/mongocxx/examples/collections/rc.cpp Example |
| 18 | + |
| 19 | +## Set a Write Concern |
| 20 | + |
| 21 | +@snippet examples/api/mongocxx/examples/collections/wc.cpp Example |
| 22 | + |
| 23 | +## Set a Read Preference |
| 24 | + |
| 25 | +@snippet examples/api/mongocxx/examples/collections/rp.cpp Example |
| 26 | + |
| 27 | +# Index Operations |
| 28 | + |
| 29 | +## List Indexes |
| 30 | + |
| 31 | +@snippet examples/api/mongocxx/examples/collections/list_indexes.cpp Example |
| 32 | + |
| 33 | +## Create an Index |
| 34 | + |
| 35 | +@snippet examples/api/mongocxx/examples/collections/create_index.cpp Example |
| 36 | + |
| 37 | +## Create an Index With Options |
| 38 | + |
| 39 | +@snippet examples/api/mongocxx/examples/collections/create_index_with_options.cpp Example |
| 40 | + |
| 41 | +# Document Operations |
| 42 | + |
| 43 | +## Query the Number of Documents |
| 44 | + |
| 45 | +@snippet examples/api/mongocxx/examples/collections/count.cpp Example |
| 46 | + |
| 47 | +## Estimate the Number of Documents |
| 48 | + |
| 49 | +@snippet examples/api/mongocxx/examples/collections/estimate_count.cpp Example |
| 50 | + |
| 51 | +## Find a Document |
| 52 | + |
| 53 | +@snippet examples/api/mongocxx/examples/collections/find_one.cpp Example |
| 54 | + |
| 55 | +## Find Multiple Documents |
| 56 | + |
| 57 | +@snippet examples/api/mongocxx/examples/collections/find.cpp Example |
| 58 | + |
| 59 | +## Delete a Document |
| 60 | + |
| 61 | +@snippet examples/api/mongocxx/examples/collections/delete_one.cpp Example |
| 62 | + |
| 63 | +## Delete Many Documents |
| 64 | + |
| 65 | +@snippet examples/api/mongocxx/examples/collections/delete_many.cpp Example |
| 66 | + |
| 67 | +## Insert a Document |
| 68 | + |
| 69 | +@snippet examples/api/mongocxx/examples/collections/insert_one.cpp Example |
| 70 | + |
| 71 | +## Insert Many Documents |
| 72 | + |
| 73 | +@snippet examples/api/mongocxx/examples/collections/insert_many.cpp Example |
| 74 | + |
| 75 | +## Replace a Document |
| 76 | + |
| 77 | +@snippet examples/api/mongocxx/examples/collections/replace_one.cpp Example |
| 78 | + |
| 79 | +## Update a Document |
| 80 | + |
| 81 | +@snippet examples/api/mongocxx/examples/collections/update_one.cpp Example |
| 82 | + |
| 83 | +## Update Multiple Documents |
| 84 | + |
| 85 | +@snippet examples/api/mongocxx/examples/collections/update_many.cpp Example |
| 86 | + |
| 87 | +## Find and Delete a Document |
| 88 | + |
| 89 | +@snippet examples/api/mongocxx/examples/collections/find_one_and_delete.cpp Example |
| 90 | + |
| 91 | +## Find and Replace a Document |
| 92 | + |
| 93 | +@snippet examples/api/mongocxx/examples/collections/find_one_and_replace.cpp Example |
| 94 | + |
| 95 | +## Find and Update a Document |
| 96 | + |
| 97 | +@snippet examples/api/mongocxx/examples/collections/find_one_and_update.cpp Example |
| 98 | + |
| 99 | +## Find Distinct Values |
| 100 | + |
| 101 | +@snippet examples/api/mongocxx/examples/collections/distinct.cpp Example |
| 102 | + |
| 103 | +## Execute a Single Bulk Write Operation |
| 104 | + |
| 105 | +@snippet examples/api/mongocxx/examples/collections/write.cpp Example |
| 106 | + |
| 107 | +## Execute Multiple Bulk Write Operations |
| 108 | + |
| 109 | +@snippet examples/api/mongocxx/examples/collections/bulk_write.cpp Example |
| 110 | + |
| 111 | +## Execute an Aggregation Operation |
| 112 | + |
| 113 | +@snippet examples/api/mongocxx/examples/collections/aggregate.cpp Example |
0 commit comments