Marten.FSharp icon indicating copy to clipboard operation
Marten.FSharp copied to clipboard

is it possible to filter based on the value of a discriminated union?

Open nkosi23 opened this issue 8 months ago • 1 comments

Hello,

Does the library supports filtering / querying documents based on the case of a discriminated union? (for example to select only documents having a property whose DU has a specific case)

I resorted to changing the representation of discriminated unions (by defining one property per case in my DTOs) but was wondering if by any chance this library managed to streamline this use case.

nkosi23 avatar Jun 10 '24 14:06 nkosi23