Registry / database / mongo-scope

mongo-scope

JSON →
library0.0.5rbrubygemsunverified

Adds scope methods to Mongo::Collection, inspired by Searchlogic.

gem install mongo_scope
INSTALL
IMPORT
SIG · MONGO-SCOPE
M
mongo-scope
databaserubyv0.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MongoScope
require 'mongo_scope'

Use scoped queries on a Mongo collection

require 'mongo_scope' # Assuming a Mongo collection is already set up collection = Mongo::Connection.new.db('test').collection('users') scoped = collection.where(name: 'John').limit(5) scoped.each { |doc| puts doc }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.5latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
13
Amazon
1
Resources
mongo-scope — gem install mongo-scope · libregistry