Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

How to find data where field is empty? #16

chakhedik opened this Issue Jun 7, 2012 · 6 comments


None yet
3 participants

Let say the model is 'something' have field 'id' & 'anything',

A = something:new(id, []),

boss_db:find(something, [{anything, []}]) or boss_db:find(something, [{anything, ""}]) does not return anything, just an empty list

I've tried the 'equals' & 'matches' also the same.


evanmiller commented Jun 7, 2012

What adapter are you using?

I use mongodb


evanmiller commented Jun 8, 2012

Do you have the same problem with other adapters? E.g. the mock adapter

It seems there's no problem with mock adapter, I can find data by empty field, I haven't try any others though, I use mongodb mainly

@chakhedik I'll have a look.

@evanmiller Haven't been following CB lately. Just checked out latest version e001c1a and getting a compilation error when building the framework:

$ make
==> cowboy (get-deps)
==> mochicow (get-deps)
==> aleppo (compile)
make: *** [all] Error 1

My config:
Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]
Ubuntu 12.04 LTS

Am I missing something?


evanmiller commented Jan 17, 2013

Instead of "make" try

./rebar get-deps
./rebar compile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment