[CSHARP-4187] MongoDB .NET Driver Quick Tour - Query Example Consistency Created: 18/Apr/22  Updated: 28/Oct/23  Resolved: 08/Jun/22

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 2.17.0

Type: Bug Priority: Minor - P4
Reporter: Brian Leonard Assignee: Dmitry Lukyanov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The MongoDB Driver Quick Tour inserts documents with a counter field,

// generate 100 documents with a counter ranging from 0 - 99 }}var{{ documents = Enumerable.Range(0, 100).Select(i => }}new{{ BsonDocument("counter", i));

but then later tries to query those documents using an i field name:

var filter = Builders<BsonDocument>.Filter.Eq("i", 71);

Either the counter field name should be changed to i, or all the i queries (I count 14) should be changed to counter.



 Comments   
Comment by Githook User [ 08/Jun/22 ]

Author:

{'name': 'Dmitry Lukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'username': 'DmitryLukyanov'}

Message: CSHARP-4187: MongoDB .NET Driver Quick Tour - Query Example Consistency. (#815)
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/9b594828280dacca4465b6fca097095b61d3a59f

Generated at Wed Feb 07 21:47:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.