Skip to content

docs: fix broken update() link in validation docs#16121

Open
White-Devil2839 wants to merge 1 commit intoAutomattic:masterfrom
White-Devil2839:docs/fix-validation-update-link
Open

docs: fix broken update() link in validation docs#16121
White-Devil2839 wants to merge 1 commit intoAutomattic:masterfrom
White-Devil2839:docs/fix-validation-update-link

Conversation

@White-Devil2839
Copy link
Contributor

Fixes a broken link in validation.md referencing the removed update() method.

What was wrong
The documentation linked to Query.prototype.update(), which has been removed in newer Mongoose versions. The corresponding anchor does not exist, resulting in a broken link.

Changes

  • Replaced update() with updateOne()
  • Updated the anchor to #query_Query-updateOne

Why this helps
Ensures the documentation references a valid method and avoids broken links, improving accuracy for developers.

This is a documentation-only change with no functional impact.

Copy link
Collaborator

@AbdelrahmanHafez AbdelrahmanHafez left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants