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

feat: allow nested languageField on documents #178

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

luigifgp
Copy link

@luigifgp luigifgp commented Mar 7, 2024

Currently objects such as options.language or pageOptions.language are unabled to use changing the default field for languageField.

On this PR we are using just-safe-get library, to Get the value at property level. This way we solve fields like:
"abc[0].language"
"a.abc.language"
"cde.abc.b.language"

feel free to share your opinion about it.

Copy link

socket-security bot commented Mar 11, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher

View full report↗︎

@SimeonGriggs
Copy link
Contributor

Cool feature!

Could you add an update to the Language Field section of the readme so people are aware of this possibility?

@luigifgp
Copy link
Author

luigifgp commented Apr 4, 2024

Read me updated! :)

@luigifgp luigifgp force-pushed the nested-object-with-language-field branch from e1e0750 to 8328201 Compare April 17, 2024 18:03
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.

2 participants