Skip to content
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

Add support for mapping document fields with dot (.) in the field name #4512

Closed
wants to merge 3 commits into from

Conversation

christophstrobl
Copy link
Member

This PR introduces support for mapping (read/write) fields that contain dots in their name, preserving the name as is instead of considering the dot being a delimiter within a path of nested objects.

Query and Update functionality remains unaffected, which means automatic rewrite for field names containing paths will NOT take place. It's in the users responsibility to pick the appropriate query/update operator (eg. $expr) to interact with the field.

Closes: #4464

This commit introduces support for mapping (read/write) fields that contain dots in their name, preserving the name as is instead of considering the dot being a deliminator within a path of nested objects.
Query and Update functionality remains unaffected which means no automatic rewrite for field names containing paths will NOT take place. It's in the users responsibility to pick the appropriate query/update operator (eg. $expr) to interact with the field.
@mp911de mp911de changed the title Add support for mapping document fields with . (dot) in the field name. Add support for mapping document fields with dot (.) in the field name. Oct 9, 2023
@mp911de mp911de changed the title Add support for mapping document fields with dot (.) in the field name. Add support for mapping document fields with dot (.) in the field name Oct 9, 2023
@mp911de mp911de added the type: enhancement A general enhancement label Oct 9, 2023
Replace duplicate occurrences of _id with FieldName.ID.name(). Shorten property names to avoid repetative "field" wording. Add Javadoc to MongoField builder.
@mp911de mp911de added this to the 4.2 RC1 (2023.1.0) milestone Oct 9, 2023
@mp911de mp911de closed this Oct 9, 2023
@mp911de mp911de deleted the issue/4464 branch October 9, 2023 13:39
mp911de pushed a commit that referenced this pull request Oct 9, 2023
This commit introduces support for mapping (read/write) fields that contain dots in their name, preserving the name as is instead of considering the dot being a separator within a path of nested objects.
Query and Update functionality remains unaffected which means no automatic rewrite for field names containing paths will NOT take place. It's in the users responsibility to pick the appropriate query/update operator (eg. $expr) to interact with the field.

Closes #4464
Original pull request: #4512
mp911de added a commit that referenced this pull request Oct 9, 2023
Replace duplicate occurrences of _id with FieldName.ID.name(). Shorten property names to avoid repetative "field" wording. Add Javadoc
to MongoField builder.

See #4464
Original pull request: #4512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow field names and map keys with dot (.)
2 participants