public static Where ( BsonJavaScript javaScript ) : |
||
javaScript | BsonJavaScript | The where clause. |
return |
public void TestWhere() { var query = Query.Where("this.a > 3"); var expected = "{ \"$where\" : { \"$code\" : \"this.a > 3\" } }"; Assert.AreEqual(expected, query.ToJson()); }