title: Is there any node library to rename files in gridfs?
body: <p>I wanted to know if there any node module or document on node module to rename filename or file metadata in gridFs. </p>
  
  <p>I went through lot of module and their examples nothing helped, can someone give input on this?</p>
  
  <p>Current file content in Mongoose/Mongo DB.</p>
  
  <pre><code>gfs.files.find({ filename: 'mongo_file_1.txt' }).toArray(function (err, files) {
          if (err) {
                   throw (err);
          }
          console.log(files);
    });
  
  Ouput :
  { _id: 5a7ae0fd9a86e52eba301cbb,
      filename: 'mongo_file_1.txt',
      contentType: 'binary/octet-stream',
      length: 288,
      chunkSize: 261120,
      uploadDate: Wed Feb 07 2018 16:50:31 GMT+0530 (IST),
      aliases: null,
      metadata: { version: 1 },
      md5: '472c1a81dcdbce9b8f20bf98de238dbb' },
  </code></pre>
  
  <p>I wanted to know if I can either change filename or version number in metadata.</p>