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.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire