-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Description
Would be great to have a specific schema type for GridFS files.
From this:
var schema = module.exports = new Schema({
login: {type: String, required: true, index: {unique: true}},
email: {type: String, required: false, index: {unique: false}},
picture: Object, // gridfs
});To something like this:
var schema = module.exports = new Schema({
login: {type: String, required: true, index: {unique: true}},
email: {type: String, required: false, index: {unique: false}},
picture: {type: Schema.Types.GridFile, required: false},
});formula1, hasezoey and huming2207
Metadata
Metadata
Assignees
Labels
No labels