Skip to content

fix(server): replace deprecated Mongoose new option - #109

Closed
Veeramanikandanr48 wants to merge 1 commit into
SahinurDEV:mainfrom
Veeramanikandanr48:fix/mongoose-return-document
Closed

Veeramanikandanr48 wants to merge 1 commit into
SahinurDEV:mainfrom
Veeramanikandanr48:fix/mongoose-return-document

Conversation

@Veeramanikandanr48

Copy link
Copy Markdown
Contributor

Description

Replaces the deprecated Mongoose { new: true } option with { returnDocument: 'after' } in the form and user update controllers. This removes the [MONGOOSE] Warning printed during the server test run while preserving the existing behavior of returning the updated document.

Related issues

Closes #103

Type of change

  • Bug fix

Checklist

  • The server type-checks (pnpm -F @form-builder/server exec tsc --noEmit).
  • Server tests pass (pnpm -F @form-builder/server test).
  • I formatted my code with Prettier.
  • No secrets, .env files, or debug console.logs are committed.
  • No documentation changes needed.

@netlify

netlify Bot commented Nov 18, 2026

Copy link
Copy Markdown

👷 Deploy request for frolicking-cascaron-4fab1f pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 5c0da65

@SahinurDEV

Copy link
Copy Markdown
Owner

Thank you @Veeramanikandanr48 — this is a correct fix! #107 made the identical change for #103 a few hours earlier (and also updated the changelog), so I'm closing this one as a duplicate. Your #108 and #110 are being merged — thanks a lot for those contributions 🙌

@SahinurDEV SahinurDEV closed this Nov 19, 2026
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.

Replace deprecated Mongoose new: true with returnDocument: 'after'

2 participants