Discussion:
[mongodb-dev] How do you create a GridFS collection from the MongoDB shell?
Greg Harabedian
2018-02-09 01:04:38 UTC
Permalink
How do you create a GridFS collection from the MongoDB shell? Everywhere I
look people just import the data using the mongofiles utility. There must
be a way to specify you want your collection to use GridFS from the shell.
--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/3375d35d-6d57-4eb4-8041-5f6e4e5ddf87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Wan Bachtiar' via mongodb-dev
2018-02-13 23:16:04 UTC
Permalink
How do you create a GridFS collection from the MongoDB shell?

Hi Greg,

The mongo shell <https://docs.mongodb.com/manual/mongo/> doesn’t have a
GridFS <https://docs.mongodb.com/manual/core/gridfs/> interface. You can
either use mongofiles
<https://docs.mongodb.com/manual/reference/program/mongofiles/> for basic
operations, or use the GridFS API via one of the supported MongoDB Drivers
<https://docs.mongodb.com/ecosystem/drivers/>.

You may also be interested in When To Use GridFS
<https://docs.mongodb.com/manual/core/gridfs/#when-to-use-gridfs>.

Please note that questions related to the usage of MongoDB are better sent
to mongodb-user group <https://groups.google.com/forum/#!forum/mongodb-user>.
This group (mongodb-dev) is for discussion for/by/about
developers/development/code of MongoDB.

If you still have any questions related to MongoDB GridFS, please post a
new discussion on mongodb-user group
<https://groups.google.com/forum/#!forum/mongodb-user>.

Regards,
Wan.
​
--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev+***@googlegroups.com.
To post to this group, send email to mongodb-***@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/3543fa29-5089-47c1-b5a8-b614f619a1a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...