[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:
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: |