mysticmind on 5.6.0
mysticmind on 5.6.0
I need some guidance on searching collections in documents. I have this query:
'var license = "12345"'
'Session.Query<Organization>(o => o.AvailableLicenses.Select(a => a.License).Contains(license))'
I get the error : Marten does not (yet) support this Linq query type
should I change this to: Session.Query<Organization>(o => o.AvailableLicenses.Any(a => a.License == license))
?
Any
should generate better queries than Select.Contains