Skip to content
New issue

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

types(schema): add missing search index types #14449

Merged
merged 2 commits into from Mar 20, 2024

Conversation

noseworthy
Copy link
Contributor

Summary

Support for MongoDB Atlas search indexes was added in #14251 but the types for Schema.searchIndex and the autoSearchIndex option were missed.

Add these types so that the typescript definitions match the capabilities of the JavaScript version of mongoose.

Examples

Not applicable. Just adding type definitions for existing functionality.

Support for MongoDB Atlas search indexes was added in [Automattic#14251](Automattic#14251)
but the types for `Schema.searchIndex` and the `autoSearchIndex` option
were missed.

Add these types so that the typescript definitions match the
capabilities of the JavaScript version of `mongoose`.
@vkarpov15 vkarpov15 added this to the 8.2.3 milestone Mar 20, 2024
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made small fix for return type but LGTM otherwise, thanks 👍

@vkarpov15 vkarpov15 merged commit d516f50 into Automattic:master Mar 20, 2024
3 checks passed
@noseworthy noseworthy deleted the add-search-index-types branch March 20, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants