module CX

Include this module or use as module_function. EG

and( eq(:name, 'Smith'), eq(:dob, '19991231'))
=>
{"$and"=>[{"name"=>{"$eq"=>"Fred"}}, {"dob"=>{"$eq"=>"19991231"}}]}