[DOCS-6053] Comment on: "mongodb-ecosystem/drivers/csharp.txt" Created: 19/Aug/15  Updated: 03/Nov/17  Resolved: 01/Apr/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Incomplete Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 10, VS 2015

Location: http://docs.mongodb.org/ecosystem/drivers/csharp/
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Referrer: http://docs.mongodb.org/ecosystem/drivers/
Screen Resolution: 1680 x 1050
repo: docs-ecosystem
source: drivers/csharp


Participants:
Days since reply: 8 years, 26 weeks, 1 day ago

 Description   

Hi!

I'm using dynamic js queries from browser client to .Net server with mongodb c# driver.

But passing the query to the BsonSerializer result with bad Deserializion.

BsonDocument doc = BsonSerializer.Deserialize<BsonDocument>("{Policy:{'$gt':5}} ,

{Policy:1}

");

the doc value: {{ "Policy" :

{ "$gt" : 5 }

}}

Driver Bug?


Generated at Thu Feb 08 07:51:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.