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
The mongoose-keywords supports type: unique to a column and/or relation? Is it possible to combine it with nested-models?
mongoose-keywords
type: unique
nested-models
Related: #11
const ArtistSchema = new Schema({ name: { type: String, keywords: { type: [String], unique: true, }, }, genre: { type: Schema.Types.ObjectId, ref: 'Genre', }, }); ArtistSchema.plugin(mongooseKeywords, { paths: ['name', 'genre'] });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
mongoose-keywords
supportstype: unique
to a column and/or relation?Is it possible to combine it with
nested-models
?Related: #11
The text was updated successfully, but these errors were encountered: