mongodb / laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)
https://www.mongodb.com/compatibility/mongodb-laravel-integration
MIT License
6.99k stars 1.42k forks source link

how to use $divide (aggregation) in jenssegers/mongodb #1401

Closed novinfan closed 4 years ago

novinfan commented 6 years ago

hi every body i want to Divides one number by another and returns the result. Pass the arguments to $divide in an array. mongobd has $divide (aggregation) but i can not find $divide in jenssegers/mongodb

i also check moloquent but i can not find divide function https://moloquent.github.io/master/advanced/#schema

we can see this function that define in mongodb.com in this url

please help me how i can use divide function in laravel with jenssegers package ??

LucasLeandro1204 commented 5 years ago

Did u solved this issue? @jetamooz

I'm having trouble when I use $query->project with paginate