You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to migrate a project to use official typescript inferred schema definitions. One of the things I do is reuse common schema definitions. For example:
Non-array types work as expected (description), but array types (skills) cannot be inferred. I haven't figured out how to make it work yet. Any suggestions?
The text was updated successfully, but these errors were encountered:
Prerequisites
Mongoose version
6.7.0
Node.js version
16.18.0
MongoDB version
5.x
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
No response
Issue
I'm trying to migrate a project to use official typescript inferred schema definitions. One of the things I do is reuse common schema definitions. For example:
Props typ is:
Non-array types work as expected (
description
), but array types (skills
) cannot be inferred. I haven't figured out how to make it work yet. Any suggestions?The text was updated successfully, but these errors were encountered: