Skip to content

chore(db-mongodb)!: remove deprecated useFacet property#16612

Merged
paulpopus merged 1 commit into
mainfrom
chore/db-mongodb-remove-deprecated-useFacet-property
May 14, 2026
Merged

chore(db-mongodb)!: remove deprecated useFacet property#16612
paulpopus merged 1 commit into
mainfrom
chore/db-mongodb-remove-deprecated-useFacet-property

Conversation

@paulpopus
Copy link
Copy Markdown
Contributor

Summary

  • Removes useFacet from the connectOptions type — Payload no longer uses $facet aggregation anywhere so the option has no effect
  • Cleans up the connect.ts workaround that was stripping useFacet: undefined before passing options to mongoose
  • Updates the DocumentDB deployment docs to remove the now-invalid guidance to set connectOptions.useFacet: false

Breaking change

If you have useFacet set in your mongooseAdapter config, remove it:

mongooseAdapter({
  connectOptions: {
-   useFacet: false,
    // ...other options
  }
})

@github-actions
Copy link
Copy Markdown
Contributor

📦 esbuild Bundle Analysis for payload

This analysis was generated by esbuild-bundle-analyzer. 🤖
This PR introduced no changes to the esbuild bundle! 🙌

@paulpopus paulpopus merged commit 4d6e9b5 into main May 14, 2026
329 of 331 checks passed
@paulpopus paulpopus deleted the chore/db-mongodb-remove-deprecated-useFacet-property branch May 14, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants