Using mongofiles with GridFS in a meteor app

前端 未结 1 615
陌清茗
陌清茗 2021-01-22 00:36

I am starting to use GridFS within a Meteor app. I have set up the file collection \"assetFiles\" with a GridFS storage adapter like this :

AssetCollection = new         


        
相关标签:
1条回答
  • 2021-01-22 01:18

    you need to change the prefix to attach to the right collection.

    $ mongofiles --help
           ....
           --prefix=                  GridFS prefix to use (default is 'fs')`
    

    eg.

    mongofiles --port 3001 -d meteor --prefix 'cfs_gridfs.assetFiles' list
    

    hope this helps! accept please thanks!

    0 讨论(0)
提交回复
热议问题