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
status: { type: { id: { type: ObjectId, ref: 'CustomerStatus', autopopulate: { select: 'title' }, }, updatedBy: { type: ObjectId, ref: 'User', autopopulate: { select: 'name' }, }, updatedAt: { type: Date, }, }, },
Something like this
The text was updated successfully, but these errors were encountered:
Remove the type key, because as written, your schema defines status as a Mixed path, and autopopulate doesn't look underneath mixed paths.
type
status
Mixed
status: { //type: { id: { type: ObjectId, ref: 'CustomerStatus', autopopulate: { select: 'title' }, }, updatedBy: { type: ObjectId, ref: 'User', autopopulate: { select: 'name' }, }, updatedAt: { type: Date, }, }, },
Sorry, something went wrong.
See Automattic/mongoose#7181
No branches or pull requests
Something like this
The text was updated successfully, but these errors were encountered: