Forum Post: Re: Query Builder

  • Thread starter Thread starter Marian Edu
  • Start date Start date
Status
Not open for further replies.
M

Marian Edu

Guest
Thanks Matt, the end result looks muck like mongodb's one but was looking for a fluent interface to help building the query... finally settled to this for time being: var f = q.filter; var qry = q.each('customer').where(f.and( f.eq('name', 'toto'), f.lt('balance', 100), f.or( f.eq('state','al'), f.eq('state', 'ak') ) ));

Continue reading...
 
Status
Not open for further replies.
Back
Top