Just string the conditions together in a list.
Real example from my own app:
CompEntries =
boss_db:find(comp_entry,[{comp_id,equals,Id},{entrant_id,equals,EntryPlayer:id()}]),
Good luck!
On 1 February 2014 08:53, till haxor <[email protected]> wrote:
> hey thanks, but, in this case as would do?
> api('GET', ["search",Search]) ->
> Var = boss_db:find(model, [{comment, 'matches', Search}])
>
> if i want match in other column named foo for example?
> boss_db:find(model, [{[foo,comment], 'matches', Search}]) ???
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/17a66a04-94dd-4465-9ad6-6c01a60bdec7%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
You received this message because you are subscribed to the Google Groups
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit
https://groups.google.com/d/msgid/chicagoboss/CAKF5fiAJ2uENGU1%2B3Q2KS1xMBT5ukUYPwU5t64TiDwb4eGtLOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.