Skip to content

DOCSP-49217: disable id alias conversion in embedded docs #3346

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

Merged
merged 5 commits into from
Apr 11, 2025

Conversation

rustagir
Copy link
Contributor

@rustagir rustagir commented Apr 10, 2025

https://jira.mongodb.org/browse/DOCSP-49217

Adds documentation about disabling id -> _id conversion in embedded fields.

STAGING

cross links:
QB page
Upgrade page

Checklist

  • Add tests and ensure they pass

@rustagir rustagir requested a review from a team as a code owner April 10, 2025 19:37
@rustagir rustagir requested a review from norareidy April 10, 2025 19:37
@rustagir rustagir changed the base branch from 5.x to 5.3 April 10, 2025 19:37
@github-actions github-actions bot added the docs label Apr 10, 2025
Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

There is 2 ways of setting the configuration:

  • in config/database.php, using 'rename_embedded_id_field' => false
  • anywhere in the code, using DB::connection('mongodb')->setRenameEmbeddedIdField(false);

@rustagir rustagir requested a review from GromNaN April 11, 2025 13:33
@rustagir rustagir requested a review from GromNaN April 11, 2025 14:04
@rustagir rustagir merged commit 9d540b6 into mongodb:5.3 Apr 11, 2025
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants