score:3

Accepted answer

there's no special support for that.

you need to explicitly add a filter for the discriminator field, _t.

var results = await collection.find(builders<subclassb>.filter.eq("_t", nameof(subclassb))).tolistasync();

Related Query

More Query from same tag