Comments (1)
Okay -- digging into this more, it turns out that the aggregate function in MongoDB is new as of version 2.2 (of the mongod service). So if you're using this package, you'll want make sure you're using the latest version of the service.
@jenssegers --> Might be good to add this to the documentation ;)
If you're on ubuntu, like I am, you need to install from the 10Gen aptitude repo, as the default one (just using apt-get install mongodb) will give you a quite older version, 2.0.4 in my case.
http://docs.mongodb.org/manual/reference/method/db.collection.aggregate/
from laravel-mongodb.
Related Issues (20)
- seperate read, write connection not working HOT 1
- castAttribute does not handle nullable immutable date times
- DatabaseTransactions and mongodb
- [Feature Request] Cast createdAt and updatedAt field by default,that is save by mongoose HOT 2
- hasMany or hasOne doesnt work without getIdAttribute HOT 11
- Array of ObjectId not being casted to string when retrieving data HOT 1
- `whereAny` and `whereAll` query Error HOT 4
- Apply casts when serializing embedded relations HOT 3
- Laravel 11 Support? HOT 2
- NOTIFIABLE NOT WORKING, Cannot access offset of type MongoDB\BSON\ObjectId in isset or empty in HOT 1
- MorphTo relation won't work when eager load if target model has different primary key HOT 1
- [BUG] hasMany and hasOne relation not working with ObjectId HOT 2
- toSql() Alias from toMql() HOT 4
- [Feature Request] Add enum collection cast HOT 1
- MongoDB\Driver\Exception\BulkWriteException: not primary in /app/vendor/mongodb/mongodb/src/Operation/Update.php:209 HOT 2
- Polymorphic One to One (MorphOne) Relationship [Feature Request] HOT 3
- BelongsToMany detach() doesn't remove id from both collections
- Transaction level not working when use closure
- Unique Rule ignoring fails
- morphOne $model (mysql) -> relation (mongo)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-mongodb.