Skip to content
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

Allow to use the MongoDB runcommand on a collection #36

Open
lgomezma opened this issue Mar 18, 2013 · 3 comments
Open

Allow to use the MongoDB runcommand on a collection #36

lgomezma opened this issue Mar 18, 2013 · 3 comments

Comments

@lgomezma
Copy link
Contributor

Right now I believe that the mongo adapter doesn't allow to execute a runcommand on the model collection such as 'geddy.model.Mymodel.runcommand'.

The runcommand is used for example in the new Text Search feature of Mongo 2.4.

@lgomezma
Copy link
Contributor Author

Also runcommand would be useful to allow the use of Mongo's aggregation framework.

@mde
Copy link
Contributor

mde commented Mar 20, 2013

We're using the MongoDB wrapper (https://github.com/idottv/node-mongodb-wrapper) as an intermediate layer. I can't see at a quick glance how that would work. I'll have to dig a little more in the client code.

@lgomezma
Copy link
Contributor Author

MongoDB wrapper has a runcommand in the collection here https://github.com/idottv/node-mongodb-wrapper/blob/master/lib/Collection.coffee#L38, maybe we could add a runcommand in the mongo adapter that would run the runcommand from the wrapper. I'm trying to write it but still trying to figure out how the query argument works in the adapter...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants