Skip to content

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

Merged
sebelga merged 1 commit intomasterfrom
feature/allow-wildcard-excludefromindexes
Sep 11, 2019
Merged

Excludefromindexes: update logic to add all properties of Array embedded entities#182
sebelga merged 1 commit intomasterfrom
feature/allow-wildcard-excludefromindexes

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