We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppose there is following collection :
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const imageSchema = new Schema( { key: { type: String }, filePath: { type: String, default: '' } }, { timestamps: true } ); imageSchema.pre('save', function (next) { const data = this; data.filePath = 'abc.com' + data.key; return next(); }); const Image = mongoose.model('Images', imageSchema); module.exports = Image;
As you can see her fields like filePath, createdAt and updatedAt are auto generated field and shouldn't come in UI
filePath
createdAt
updatedAt
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Suppose there is following collection :
As you can see her fields like
filePath
,createdAt
andupdatedAt
are auto generated field and shouldn't come in UIThe text was updated successfully, but these errors were encountered: