You'll need to save the text as an unindexed property. To do this, you need 
to store the value explicitly as an array to specify excludeFromIndexes: 
true, eg.

var entity = { key: datastore.key('Company'), data: [ { name: 'description', 
value: "Some long text greater than 1500 bytes ...", excludeFromIndexes: 
true } ] };

More details can be found in the documentation for google-cloud-node 
<https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/v0.52.0/datastore?method=save>
.

On Sunday, April 16, 2017 at 12:06:09 PM UTC-4, 김진형 wrote:
>
> i wonder how to save longtext data in node.js
>
>
> when datastore web page
> i can select 'text' type
>
> but in nodejs i can't find how to string to text type
>
> please help
>
>
> i do not want to see that error message:
> Error: The value of property "content" is longer than 1500 bytes.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/79de866b-f70c-42e5-8e4d-d1ee4eb61112%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to