Details
-
Bug
-
Resolution: Incomplete
-
Major - P3
-
None
-
None
-
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
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
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?