vendredi 29 avril 2016

Month specific query Mongodb and laravel

I'm working with laravel molequent for mongoDb and I want to write a query which compares the current month between two dates. Suppose I have start_date and end_date, if I write query in mysql it will be:

select * from table where month(curdate()) between month(start_date) and month(end_date) ;

Now I have to write this query in mongoDb with laravel query builder.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2494hES
via IFTTT

Aucun commentaire:

Enregistrer un commentaire