-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use mongo driver directly instead of Origin gem #22
base: master
Are you sure you want to change the base?
Conversation
spec/unit/relation_spec.rb
Outdated
to eql([{name: 'Jane',}, {name: 'Joe'}]) | ||
|
||
expect(users.order(name: :desc).only(:name).without(:_id).to_a.map(&:to_h)). | ||
expect(users.order(name: Mongo::Index::DESCENDING).only(:name).without(:_id).to_a.map(&:to_h)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it'd be better if we hide this behind our API, so basically Mongo::Dataset#order
could translate :desc
and :asc
to corresponding driver constants
Was this abandoned? 'Cause all that is making the checks fail is a change in ROM::CommandRegistry. |
@jfromell looks like it was |
I'm happy to continue work on this if you'd like. Let me know! |
The checks will pass again if you merge #25, so it's an easy fix. Any particular reason as to why that pull request hasn't been merged yet? |
@jfromell I don't know why this wasn't merged. I can keep working on it if the maintainers are interested in having me do so. |
No description provided.