Comments (4)
You can access the underlying mongodb adapted collection using the #collection class method @monkeyhelper. Until something nicer gets implemented with mongomapper. It takes (in order) an array of keys (to group by), a hash of the the initial values, a conditions hash, and the javascript function.
from mongomapper.
Is there a way to 'limit' a group query?
from mongomapper.
Not that I'm aware of. Somebody else feel free to correct me, though.
from mongomapper.
The new map reduce stuff will work for this. I'll wait to work on anything until that is all good to go.
from mongomapper.
Related Issues (20)
- Database cleaner? HOT 1
- release 0.14.x HOT 2
- Support for mongoldb 3.4 HOT 2
- sinatra installtion instructions out of date HOT 7
- is it possible to set collection name dynamically?
- ArgumentError: wrong number of arguments (given 2, expected 1) HOT 2
- Mongo authentication error HOT 1
- Model key with name "attributes" not works HOT 1
- Mongo::Error::OperationFailure
- stack level too deep with large embedded document HOT 2
- default option for key doesn't work since #678 HOT 1
- Is there any plan to setup GitHub Sponsor for mongomapper?
- Up Test Coverage to 100%
- Fix warnings on ERB.new with Ruby 3.1 HOT 4
- Time#to_s(:number) is deprecated in Rails 7.0
- Coveralls coverage decreased 0.0% without any changes HOT 1
- Drop Ruby 2.4 support?
- Defaults values for embedded documents with subclasses no longer with on 0.15 HOT 12
- Will drop Rails 5.x support
- _parent_document not set on subclasses of embedded documents HOT 2
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 mongomapper.