djedi23 / mongodb-gridfs-rs

An implementation of Mongo GridFS in Rust
9 stars 4 forks source link

is it possible to get all files in an fs collection using this library? if so how #9

Closed veritem closed 1 year ago

veritem commented 1 year ago

All examples show how to get one file, I feel like there is a way of all files in a collection but I can't figure out how.

veritem commented 1 year ago

This is dump, I literally forgot .find(None, GridFSFindOptions::default()) exists

djedi23 commented 1 year ago

Hi,

No problem. It happens to everyone.

If the issue weren't solved, I'd point you on this example: https://github.com/djedi23/mongodb-gridfs-rs/blob/master/examples/find.rs