Ottoman find where value is in array

I have a User object with the field email, I would like to call the find method in a way similar to this.

User.find({email: ["example@example.com", "example2@example.com"]});

I have tried using $contains but I am unable to get it working. Is there a way to do the IN array clause with ottoman? If it is currently not available will it be in V2?

Hey @rlux,

I do not believe it is currently available. We are currently hard at work on v2 though, so feel free to file an issue on GitHub and we will be sure to include a $in keyword.

Cheers, Brett

Sure, will do. Thanks for your quick reply :slight_smile:

@rlux You can use this enhancement version ottoman-in - npm