According to: https://cloud.google.com/datastore/docs/concepts/entities#embedded_entity
Setting the excludeFromIndexes: true
on an embedded entity should remove both it and its properties from being indexed and should therefore allow the properties of that embedded entity to be greater than 1500 bytes.
I am trying to write an embedded entity that has some properties that are longer than 1500 bytes and I'm getting an error:
“Error: The value of property “additionalAttributes” is longer than 1500 bytes. at /node_modules/grpc/src/node/src/client.js:434:17"
Even though I'm setting the excludeFromIndexes: true
(and I can see in the cloud console that the embedded entity is correctly being added without indexing) on the embedded entity.
I see there is a known issue for this at: https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1916. Though I don't see anything as far as a fix or workaround
Any suggestions on what is causing this and how to fix/workaround?
My question/issue was really this one: https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1916
and the answer/solution is the fixed version via this PR https://github.com/GoogleCloudPlatform/google-cloud-node/pull/2497