mongoid / origin

A Ruby DSL for building MongoDB queries
http://mongoid.org/en/origin/index.html
MIT License
62 stars 29 forks source link

Aggregation Framework DSL #59

Closed rodrigosaito closed 11 years ago

rodrigosaito commented 11 years ago

This is a WIP for #24

This is a proposal for the aggregation framework dsl for origin. There is some stuff still missing.

Comments are welcome.

goshacmd commented 11 years ago

Does it take field aliases into account (e.g. I have a field :n, as: :name, I want to be able to reference this field as :name in aggregation DSL but it actually should be mapped to "$n" and not "$name")?

And is there anything unfinished preventing from merging?

rodrigosaito commented 11 years ago

This is not complete yet, there is some missing operators. I don't recall which one now.

Need some feedback before I finish and add all the documentation on every class.

About the aliases, I guess this should be handled by mongoid and not in origin.

durran commented 11 years ago

Sorry for taking so long to get to this - was so busy and finally get back around... I've taken influence from this pull and starting reimplementing into master... Should be finished this weekend. Thanks again!

coveralls commented 10 years ago

Coverage Status

Changes Unknown when pulling 322a24b6c34217d082a1b6b0ffb23c9c050c7348 on rodrigosaito:aggregation into \ on mongoid:master**.