[Opa] Option in mongo

Clement Le Marc clement at revolutionmobile.fr
Tue Apr 3 12:18:00 UTC 2012


Hi,

We have the following type and db

type Bidule.t = {
     id : int
     email : option(string)
}
database bidule = @mongo
db /bidule/bidule[{id}] : Bidule.t

Is there a way to query on the email field ? We tried the following 
without success :
/bidule/bidule[email == some("xxx")]
/bidule/bidule[email == {some="xxx"}]

Thanks,
Clément


More information about the Opa mailing list