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
Schema
const schema = lounge.schema({ name: String, email: { type: String, index: true, indexType: 'array', refKeyCase: 'lower' } }) schema.pre('save', function (next) { if (this.email) { this.email = this.email.toLowerCase(); } next(); }); const User = lounge.model('User', schema); const user = new User({ name: 'Bob', email: 'BOB@gmail.com' }); user.save({ waitForIndex: true }, (err, saved) => { // ... });
Investigate possible issues with this setup. @scdowney @atrites Please add details.
The text was updated successfully, but these errors were encountered:
bojand
No branches or pull requests
Schema
Investigate possible issues with this setup.
@scdowney @atrites Please add details.
The text was updated successfully, but these errors were encountered: