Closed CK-Yong closed 2 years ago
This is a feature as described in #11
var filterResult = FilterBuilder.FromString("bar=\"baz\"") .UseAdapter(new MongoFilterAdapter<MyClass>()) .UseWhitelist(x => x.Foo) .Build(); filterResult.IsQueryAllowed == false; myCollection.Find(filterResult.Value); // Throws InvalidOperationException var filterResult = FilterBuilder.FromString("foo=\"baz\"") .UseAdapter(new MongoFilterAdapter<MyClass>()) .UseBlacklist(x => x.Foo) .Build(); filterResult.IsQueryAllowed == false; myCollection.Find(filterResult.Value); // Throws InvalidOperationException
This is a feature as described in #11