{"_id":"mongoose-fs","_rev":"34-bb458e779fc02b00ec7d3273b7275955","name":"mongoose-fs","description":"Mongoose plugin for large attributes storage in GridFS","dist-tags":{"latest":"0.2.7"},"versions":{"0.1.0":{"name":"mongoose-fs","version":"0.1.0","description":"Mongoose plugin for large attributes storage in GridFS","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/"},"main":"./index.js","repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"dependencies":{"mongoose":"3.8.x"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"MIT","engines":{"node":">=0.10"},"_id":"mongoose-fs@0.1.0","dist":{"shasum":"ab1c133869128bf04c466c6bf6e7b0706788d721","tarball":"https://registry.npmjs.org/mongoose-fs/-/mongoose-fs-0.1.0.tgz","integrity":"sha512-/r38LkvWwarQnmr8AxIckn9WdET9Pcuo5gugs/PcgHcYMZ0jFNNUdFVGHxhXaLqQRTDcyBgSXPef4z8IO4tnnw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNmDVLQ60mov50U4uEZqbNWq+BbNE476wmL27jMZJUZAIgKjaPL9w7WrjV8g1NX/m8WUiofOPdK+NXBB1ndVLNx0o="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"rricard","email":"ricard.robin@gmail.com"},"maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"}]},"0.1.1":{"name":"mongoose-fs","version":"0.1.1","description":"Mongoose plugin for large attributes storage in GridFS","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/"},"main":"./index.js","repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"dependencies":{"mongoose":"3.8.x"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"MIT","engines":{"node":">=0.10"},"_id":"mongoose-fs@0.1.1","dist":{"shasum":"f8b800fb14913b9c13d59263d2123e8d33c1f168","tarball":"https://registry.npmjs.org/mongoose-fs/-/mongoose-fs-0.1.1.tgz","integrity":"sha512-bYPvHGTmfzSWNhPGyz4DIYtUj7nC3l+xtZBstFFeoRKnTrbpPhEV7q+K3gwtRTH+/yfbD1PbG87RSoKS/PcLZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG0U7ScwKDEPH0IEWxW4+4LVwqqL3lS2/iSO5Gv7OtVEAiAKAVUfxoMTecxAu04WTpc87LrcnGnP9rsxRGWFyj2Jng=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"rricard","email":"ricard.robin@gmail.com"},"maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"}]},"0.1.2":{"name":"mongoose-fs","version":"0.1.2","description":"Mongoose plugin for large attributes storage in GridFS","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/"},"main":"./index.js","repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"dependencies":{"mongoose":"3.8.x"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"MIT","engines":{"node":">=0.10"},"bugs":{"url":"https://github.com/rricard/mongoose-fs/issues"},"homepage":"https://github.com/rricard/mongoose-fs","_id":"mongoose-fs@0.1.2","dist":{"shasum":"f6be0200e74e19fd5b8d23d1538a4255fe220fba","tarball":"https://registry.npmjs.org/mongoose-fs/-/mongoose-fs-0.1.2.tgz","integrity":"sha512-pHywMlgH3Fkt7+AF3qxWaBTUr28R7FtFZIA+bWa9aDqUH8YA2HyJx5fw1FEI9a0Hu9m1/ig2vMI9/uIH6T5ZgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8MmTKVkOb6MqBax0FaPzqwwivDZVsA0vJJHc4QwE1EwIgYVa9BYqAVn2yG2VKH8UJT9kin846y4UeLP6r2k0DXQs="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rricard","email":"ricard.robin@gmail.com"},"maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"}]},"0.1.3":{"name":"mongoose-fs","version":"0.1.3","description":"Mongoose plugin for large attributes storage in GridFS","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/"},"main":"./index.js","repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"dependencies":{"mongoose":"3.8.x"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"MIT","engines":{"node":">=0.10"},"bugs":{"url":"https://github.com/rricard/mongoose-fs/issues"},"homepage":"https://github.com/rricard/mongoose-fs","_id":"mongoose-fs@0.1.3","dist":{"shasum":"b34a7fdb1e5a0119290ba59fac86d8c7f4c2e947","tarball":"https://registry.npmjs.org/mongoose-fs/-/mongoose-fs-0.1.3.tgz","integrity":"sha512-16tD50+rQ+4+kNjRWfa07CiQBMOaei8MjWjxGQYrh87IyULjtjUnuxnIxzz5P2H/+mvX2nPCbY66O9hCU1jfyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKx7f8/kMgzOWcPwL+LqheQQzZ6r44Pi6u+5mTwSU5SwIhAM7Af19MAQmD3CtkT4mx2XFTW2mvwGeiJOR6xso24Qqc"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rricard","email":"ricard.robin@gmail.com"},"maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"}]},"0.1.4":{"name":"mongoose-fs","version":"0.1.4","description":"Mongoose plugin for large attributes storage in GridFS","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/"},"main":"./index.js","repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"dependencies":{"mongoose":"3.8.x"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"MIT","engines":{"node":">=0.10"},"bugs":{"url":"https://github.com/rricard/mongoose-fs/issues"},"homepage":"https://github.com/rricard/mongoose-fs","_id":"mongoose-fs@0.1.4","dist":{"shasum":"e9353f5a27ab3ad4cdc164bdd72b44c279e0b8c6","tarball":"https://registry.npmjs.org/mongoose-fs/-/mongoose-fs-0.1.4.tgz","integrity":"sha512-WMFW8ygrvd7oSFfUUgKnUdB8WF16WISWgFKXlyFPAG4+elrvclE0HvRpynhgXckPzTStT8Di9xxknRoNVf95rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBiynfaZPFXDOoaZpUcETIP5o5uDK//KaNT6iPXPBM3mAiBLMVlvgE8YdoNNZnEbvwSW3BBjkLwBWgeu6hpDBgAwcQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rricard","email":"ricard.robin@gmail.com"},"maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"}]},"0.2.0":{"name":"mongoose-fs","version":"0.2.0","description":"Mongoose plugin for large attributes storage in GridFS","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/"},"main":"./index.js","repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"dependencies":{"mongoose":"3.8.x"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"MIT","engines":{"node":">=0.10"},"bugs":{"url":"https://github.com/rricard/mongoose-fs/issues"},"homepage":"https://github.com/rricard/mongoose-fs","_id":"mongoose-fs@0.2.0","dist":{"shasum":"0a0e3928969d5cdd705523cc64fa2d11da03242a","tarball":"https://registry.npmjs.org/mongoose-fs/-/mongoose-fs-0.2.0.tgz","integrity":"sha512-6E62cnZDpHbeFe/md/kc8ID0w9vsRMYTo0rEjF1XGqLj8qxiAAQQm3pTQXSE/CgtK8uTt54lYzeQpAo5H/Kq5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDSBc3FyN7QEQb+lDkiWsOggrd9riduU9hdiPc/DXMQNAiEApuD2P01jTflUwdR6CjKpRxnxfQ99p9CPENiIkrVgR1g="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rricard","email":"ricard.robin@gmail.com"},"maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"},{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}]},"0.2.1":{"name":"mongoose-fs","version":"0.2.1","description":"Mongoose plugin for large attributes storage in GridFS","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/"},"main":"./index.js","repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"dependencies":{"mongoose":"3.8.x"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"MIT","engines":{"node":">=0.10"},"bugs":{"url":"https://github.com/rricard/mongoose-fs/issues"},"homepage":"https://github.com/rricard/mongoose-fs","_id":"mongoose-fs@0.2.1","dist":{"shasum":"d6f51c9cd174e44ff4f48bd2dd5020fe4688f454","tarball":"https://registry.npmjs.org/mongoose-fs/-/mongoose-fs-0.2.1.tgz","integrity":"sha512-EhAHhx+jpVo7UpNFTEfeCHFxnSgSvRi8sZXLjlmHzde83ewcgSww3PAtGndTSGtYOVcYD71SgPSykiddG85wMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGjjTg15Zn8xVsxZw/sALehkYhCz4Sfr5vlBucAqM/zCAiEA+UCrSq4pbe2oBZ0SIFEhxH9oWX1+5lNpfKRYreG3+48="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rricard","email":"ricard.robin@gmail.com"},"maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"},{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}]},"0.2.2":{"name":"mongoose-fs","version":"0.2.2","description":"Mongoose plugin for large attributes storage in GridFS","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/"},"main":"./index.js","repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"dependencies":{"mongoose":"3.8.x"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"MIT","engines":{"node":">=0.10"},"bugs":{"url":"https://github.com/rricard/mongoose-fs/issues"},"homepage":"https://github.com/rricard/mongoose-fs","_id":"mongoose-fs@0.2.2","dist":{"shasum":"4f885ff40d0263d002f6f673015e6d2337552215","tarball":"https://registry.npmjs.org/mongoose-fs/-/mongoose-fs-0.2.2.tgz","integrity":"sha512-Fn8ASUUisGWHndOMVe5TM5vxz+LBJNrVoahCwVKHD+GYI+uVtKTw/M8HNs/+ZaVuQCjfWp5zNSkW8DHyWvBx8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCewCMaErSCMnzZHOzEDv3bdoDUrmVJdw0YHlhFSrxnegIgYwGc5cwi0XuUkGTDnykn2efGElED4Chfy6mnAtRBT8w="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rricard","email":"ricard.robin@gmail.com"},"maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"},{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}]},"0.2.3":{"name":"mongoose-fs","version":"0.2.3","description":"Mongoose plugin for large attributes storage in GridFS","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/"},"main":"./index.js","repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"dependencies":{"mongoose":"3.8.x"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"MIT","engines":{"node":">=0.10"},"bugs":{"url":"https://github.com/rricard/mongoose-fs/issues"},"homepage":"https://github.com/rricard/mongoose-fs","_id":"mongoose-fs@0.2.3","dist":{"shasum":"f4170aeb152b2baac12bf9571dfe6633015999fb","tarball":"https://registry.npmjs.org/mongoose-fs/-/mongoose-fs-0.2.3.tgz","integrity":"sha512-NUdJLSHoEN6cgeF3YNoXKKKBNVkbnYOn1jFfd8ndHjSTixSpTVBaDTSUVyI2nmGHO+DUaztbNTsSGl9vbcoO4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDjQ8i9scam8KDpKMWnt6dpkeY1Jf8uHUwbz3uE39JGZAiAJSMgd2orIn+9NFMWAqT9Xn1i2bpR4dk6aBYITBpPAhg=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rricard","email":"ricard.robin@gmail.com"},"maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"},{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}]},"0.2.4":{"name":"mongoose-fs","version":"0.2.4","description":"Mongoose plugin for large attributes storage in GridFS","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/"},"main":"./index.js","repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"dependencies":{"mongoose":"3.8.x"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"MIT","engines":{"node":">=0.10"},"bugs":{"url":"https://github.com/rricard/mongoose-fs/issues"},"homepage":"https://github.com/rricard/mongoose-fs","_id":"mongoose-fs@0.2.4","dist":{"shasum":"2b9f077175a5fc2efd540a01a2dae4295754f46b","tarball":"https://registry.npmjs.org/mongoose-fs/-/mongoose-fs-0.2.4.tgz","integrity":"sha512-ka1yNymFOdmfnoeSO3XabhCilKqGeuJtSJ3775YKyAcOJNCQCfM9UVZAsfRCnERw2kFWvdylhqgCxCVYoo4DEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYn5zPN4EHLlzSDU3phC0iXze0nizj4+aHCOhgDC4tHQIgS2EqAkb+Go+0pSLrGE64CNVn1PTlTPUMJyKW0xJhu3s="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rricard","email":"ricard.robin@gmail.com"},"maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"},{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}]},"0.2.5":{"name":"mongoose-fs","version":"0.2.5","description":"Mongoose plugin for large attributes storage in GridFS","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/"},"main":"./index.js","repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"dependencies":{"mongoose":"3.8.x"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"MIT","engines":{"node":">=0.10"},"bugs":{"url":"https://github.com/rricard/mongoose-fs/issues"},"homepage":"https://github.com/rricard/mongoose-fs","_id":"mongoose-fs@0.2.5","dist":{"shasum":"90ab726491187d0c6016049cf91d86f301f02ef8","tarball":"https://registry.npmjs.org/mongoose-fs/-/mongoose-fs-0.2.5.tgz","integrity":"sha512-qh0PvdGYSCUGM6BAzte5sNaKhUmJ1mXkPhg56cKrcKxVkkApsvwtNx8KO6cN/SZW9C9VleWkGaxtk/QHvDZY9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYCALCJwpIoP8Hqro17z/j8YAiZjKey3UWg6dzagIusAiEA9uwHfyNDOwsiBuqlNexQ9GvI56qSGwgi8r51QwoeuqE="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rricard","email":"ricard.robin@gmail.com"},"maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"},{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}]},"0.2.6":{"name":"mongoose-fs","version":"0.2.6","description":"Mongoose plugin for large attributes storage in GridFS","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/"},"main":"./index.js","repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"dependencies":{"mongoose":"3.8.x"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"MIT","engines":{"node":">=0.10"},"bugs":{"url":"https://github.com/rricard/mongoose-fs/issues"},"homepage":"https://github.com/rricard/mongoose-fs","_id":"mongoose-fs@0.2.6","dist":{"shasum":"d191688023832e6a1659d3ca4875be511e349a69","tarball":"https://registry.npmjs.org/mongoose-fs/-/mongoose-fs-0.2.6.tgz","integrity":"sha512-F0GQWGtv3Qo96ENdGf32fEQvi9bmKJ8hRKaHCWDVpK2VmAA6Zi309LinzFnEItHXmYI1si34dp4wbyh6R30zGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNG5WxT0kkbrZszFpw0Jpyqtw+tO9AYbbwuEemJ7W3VQIgKEOQZtHNHs4cJWKCAqCfyfMC5UvUQcBzDHUQ3lyvjsc="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rricard","email":"ricard.robin@gmail.com"},"maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"},{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}]},"0.2.7":{"name":"mongoose-fs","version":"0.2.7","description":"Mongoose plugin for large attributes storage in GridFS","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/"},"main":"./index.js","repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"dependencies":{"mongoose":"3.8.x"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"MIT","engines":{"node":">=0.10"},"bugs":{"url":"https://github.com/rricard/mongoose-fs/issues"},"homepage":"https://github.com/rricard/mongoose-fs","_id":"mongoose-fs@0.2.7","dist":{"shasum":"57e83a53666b5414ee52ae6045b577c73a591abb","tarball":"https://registry.npmjs.org/mongoose-fs/-/mongoose-fs-0.2.7.tgz","integrity":"sha512-gKieeFb5kL+14CvmuYU7BTn3mxV7T7mBHQ4FBj+o711DPfZlF8vuDm5Fyf7OQhQzPwai0RtufQbYzls1dXjPHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcK/w9JX3pF/RtaVB/f/YaJMPptesh4QE7VHQMiIFHMQIgaTMNUeDEXcL8z0LZZAdMb4SyN9PQlpCdRMEh4T4PH3E="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"rricard","email":"ricard.robin@gmail.com"},"maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"},{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}]}},"readme":"# mongoose-fs\n\nMongoose plugin for large attributes storage in GridFS.\n\n## Why ?\n\nA basic mongo document can only keep a limited number of information. This plugin gives you the power to skip this limit by storing the big and not queried parts into GridFS.\n\n## Installation\n\n```shell\nnpm install mongoose-fs\n```\n\nor add it to your `package.json`.\n\n## Usage\n\n### Schema decoration\n\nFirst you'll need to decorate your schema with the plugin.\n\nYour GridFS keys **shouldn't be in your schema** and your schema should be in **strict mode** (default behavior). If you don't respect those two conditions, your keys will be stored in mongo and in GridFS **at the same time**.\n\nYou won't be able to run queries on those keys, so ensure that it's just for storing additional data in your model.\n\nHere's an example :\n\n```javascript\nvar mongoose = require('mongoose');\nvar mongooseFS = require('mongoose-fs');\n\nvar fileSchema = mongoose.Schema({\n  name: String,\n  size: Number,\n  creation_date: Date\n});\n\nfileSchema.plugin(mongooseFS, {keys: ['content', 'complement'], mongoose: mongoose});\nvar File = mongoose.model('File', fileSchema);\n```\n\nIn this example, the content of the `content` and `complement` keys will be stored in GridFS.\n\n#### Plugin options\n\nFor more control we provide those options to the plugin :\n\n* `keys` is mandatory. It's just an array of keys processed by the plugin.\n* `mongoose` is mandatory. Pass your mongoose module (Why ? because the internal mongoose's gridfs module should be absolutely the same....)\n* `bucket` is the GridFS in which you want to store this data. By default it will be `'fs'`.\n* `connection` is your mongo connection. By default it uses the default mongoose connection.\n\n### Saving a document\n\nNothing has to be done here. The content of the keys will be automatically sent into GridFS.\n\n### Loading a document\n\nWhen you get a document back from mongo, you'll still have to unpack it's gridfs content.\n\nIt remains very simple to use :\n\n```javascript\nFile.findById(id, function (err, file) {\n  if(err) {\n    return done(err);\n  }\n  file.retrieveBlobs(function (err) {\n    if(err) {\n      return done(err);\n    }\n    // Now everything is ready !\n  });\n});\n```\n","maintainers":[{"name":"rricard","email":"ricard.robin@gmail.com"},{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}],"time":{"modified":"2022-06-20T07:14:15.587Z","created":"2014-02-08T19:43:33.078Z","0.1.0":"2014-02-08T19:43:34.253Z","0.1.1":"2014-03-20T16:32:08.581Z","0.1.2":"2014-03-27T10:00:54.091Z","0.1.3":"2014-03-27T13:05:12.824Z","0.1.4":"2014-03-27T13:48:10.335Z","0.2.0":"2014-04-03T13:20:49.174Z","0.2.1":"2014-04-03T13:24:33.101Z","0.2.2":"2014-04-03T13:29:08.215Z","0.2.3":"2014-04-03T13:53:15.689Z","0.2.4":"2014-04-03T14:14:50.046Z","0.2.5":"2014-04-03T14:23:30.049Z","0.2.6":"2014-04-03T14:39:08.078Z","0.2.7":"2014-04-03T14:44:17.305Z"},"readmeFilename":"README.md","author":{"name":"Robin Ricard","email":"ricard.robin@gmail.com"},"repository":{"type":"git","url":"git@github.com:rricard/mongoose-fs.git"},"keywords":["mongodb","mongoose","gridfs","plugin"],"homepage":"https://github.com/rricard/mongoose-fs","bugs":{"url":"https://github.com/rricard/mongoose-fs/issues"},"users":{"fgribreau":true}}