2 / 2
Dec 2024

Hello,

I have the following filter in my c# application

var filter = Builders.Filter.Where(p =>
p.UserIntegrations.OfType ().Any(a =>
a.Identifier == shopName)
);

This used to work correctly but after upgrading to mongodb driver 3.0 it stopped working with error

Expression not supported: p.UserIntegrations.OfType()

Any ideas?
Thanks
Yannis

2 months later

Hey! I have the same error after updating the MongoDb driver to 3.1.0 version.