Skip to content

docs: update README examples to use async/await instead of callbacks#1052

Open
mahmoodhamdi wants to merge 1 commit intojaredhanson:masterfrom
mahmoodhamdi:fix/readme-mongoose-callbacks
Open

docs: update README examples to use async/await instead of callbacks#1052
mahmoodhamdi wants to merge 1 commit intojaredhanson:masterfrom
mahmoodhamdi:fix/readme-mongoose-callbacks

Conversation

@mahmoodhamdi
Copy link

Summary

  • Updated User.findOne() and User.findById() examples in the README to use async/await instead of callbacks
  • Mongoose 7.x dropped callback support for these methods, so the current examples no longer work with modern Mongoose versions

Closes #1046

User.findOne() and User.findById() no longer accept callbacks since
Mongoose 7.x. Updated the strategy configuration and deserialization
examples to use async/await.

Closes jaredhanson#1046

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

Update User.findOne and User.findById parameters in README examples

1 participant