Skip to content

Commit

Permalink
Uses 'properties' region for the excluded property snippet (#149)
Browse files Browse the repository at this point in the history
* Uses properties region for excluded property

* Uses same capitilzation as orignal
  • Loading branch information
WalterHub authored and jmdobry committed Jul 13, 2016
1 parent 8f5dc00 commit 4d48618
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions datastore/concepts.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,33 @@ Entity.prototype.testEntityWithParent = function (callback) {
Entity.prototype.testProperties = function (callback) {
// jshint camelcase:false
// [START properties]
var task = {
type: 'Personal',
created: new Date(),
done: false,
priority: 4,
percent_complete: 10.0,
description: 'Learn Cloud Datastore'
};
var task = [
{
name: 'type',
value: 'Personal'
},
{
name: 'created',
value: new Date()
},
{
name: 'done',
value: false
},
{
name: 'priority',
value: 4
},
{
name: 'percent_complete',
value: 10.0
},
{
name: 'description',
value: 'Learn Cloud Datastore',
excludeFromIndexes: true
}
];
// [END properties]

this.datastore.save({
Expand Down

0 comments on commit 4d48618

Please sign in to comment.