Exemple #1
0
        public void TestPartialFilterExpression()
        {
            var    options  = IndexOptions.SetPartialFilterExpression(Query.GT("x", 0));
            string expected = "{ \"partialFilterExpression\" : { \"x\" : { \"$gt\" : 0 } } }";

            Assert.AreEqual(expected, options.ToJson());
        }