Method: Mongo::Grid::FSBucket#find
- Defined in:
- lib/mongo/grid/fs_bucket.rb
#find(selector = nil, options = {}) ⇒ CollectionView
Find files collection documents matching a given selector.
134 135 136 137 |
# File 'lib/mongo/grid/fs_bucket.rb', line 134 def find(selector = nil, = {}) opts = .merge(read: read_preference) if read_preference files_collection.find(selector, opts || ) end |