Skip to content

Commit 2c22254

Browse files
committed
fix links to GitHub sources
1 parent 6590e63 commit 2c22254

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/content/mongocxx-v3/working-with-bson.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ use each. For more information and example code, see our
2525
The bsoncxx library offers four interfaces for building BSON: one-off
2626
functions, a basic builder, a list builder and a stream-based builder.
2727

28-
[`bsoncxx::builder::basic::document`](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/bsoncxx/builder/basic/document.hpp)<br/>
29-
[`bsoncxx::builder::stream::document`](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/bsoncxx/builder/stream/document.hpp)
28+
[`bsoncxx::builder::basic::document`](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/builder/basic/document.hpp)<br/>
29+
[`bsoncxx::builder::stream::document`](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/builder/stream/document.hpp)
3030

3131
The various methods of creating BSON documents and arrays are all
3232
equivalent. All interfaces will provide the same results, the choice of
@@ -175,7 +175,7 @@ for (auto && e : {1, 2, 3}) {
175175

176176
### <a name="value">Owning BSON Documents (values)</a>
177177

178-
[`bsoncxx::document::value`](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/bsoncxx/document/value.hpp)
178+
[`bsoncxx::document::value`](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/document/value.hpp)
179179

180180
This type represents an actual BSON document, one that owns its buffer of
181181
data. These documents can be constructed from a builder by calling
@@ -200,7 +200,7 @@ bsoncxx::document::value one_line = bsoncxx::builder::stream::document{} << "fin
200200

201201
### <a name="view">Non-owning BSON Documents (views)</a>
202202

203-
[`bsoncxx::document::view`](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/bsoncxx/document/view.hpp)
203+
[`bsoncxx::document::view`](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/document/view.hpp)
204204

205205
This type is a view into an owning `bsoncxx::document::value`.
206206

@@ -232,7 +232,7 @@ auto cursor2 = collection2.find(query_value.view());
232232

233233
### <a name="view_or_value">Optionally-owning BSON Documents (view_or_value)</a>
234234

235-
Many driver methods take a document::view_or_value parameter, for example, [`run_command`](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/mongocxx/database.hpp#L83-L92):
235+
Many driver methods take a document::view_or_value parameter, for example, [`run_command`](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/mongocxx/include/mongocxx/v_noabi/mongocxx/database.hpp#L144-L153):
236236

237237
```
238238
bsoncxx::document::value run_command(bsoncxx::document::view_or_value command);
@@ -297,7 +297,7 @@ bsoncxx::document::view dangling_view = temp_builder.extract().view(); // Bad!!
297297

298298
### <a name="print">Printing BSON Documents</a>
299299

300-
[`bsoncxx::to_json()`](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/bsoncxx/json.hpp#L28-L36)
300+
[`bsoncxx::to_json()`](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/json.hpp#L39-L55)
301301

302302
The bsoncxx library comes with a convenience method to convert BSON
303303
documents to strings for easy inspection:
@@ -307,7 +307,7 @@ bsoncxx::document::value = document{} << "I am" << "a BSON document" << finalize
307307
std::cout << bsoncxx::to_json(doc.view()) << std::endl;
308308
```
309309

310-
There is an analogous method, [from_json()](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/bsoncxx/json.hpp#L60-L68), to build document::values out of existing JSON strings.
310+
There is an analogous method, [from_json()](https://github.com/mongodb/mongo-cxx-driver/blob/master/src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/json.hpp#L57-L67), to build document::values out of existing JSON strings.
311311

312312
### <a name="fields">Getting Fields out of BSON Documents</a>
313313

0 commit comments

Comments
 (0)