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

Excludefromindexes: update logic to add all properties of Array embedded entities #182

Merged
merged 1 commit into from
Sep 11, 2019

Conversation

sebelga
Copy link
Owner

@sebelga sebelga commented Sep 11, 2019

This PR updates the logic to calculate the excludeFromIndexes array. For array values with embedded entities it nows exclude not only the array but all the child properties of possible embedded entity (thanks to the new wildcard "*" operator https://github.com/googleapis/nodejs-datastore/pull/451/files#diff-574d28f5b7489fd2b49cb90d47efdf82R180)

fix #132

…roperties of Array embedded

The v4.2.0 of the Datastore client allows wildcard "*" to target all the properties of an embedded
entity. The logic to define the Array of excludeFromIndexes has been updated to make use of it.

fix #132
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 97.572% when pulling cdd1e34 on feature/allow-wildcard-excludefromindexes into cc11e02 on master.

@sebelga sebelga merged commit c9da35b into master Sep 11, 2019
@sebelga sebelga deleted the feature/allow-wildcard-excludefromindexes branch September 11, 2019 06:32
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.

Embedded entities cannot store string values larger than 1500 bytes
2 participants