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

Changes property name #171

Merged
merged 1 commit into from
Aug 16, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions datastore/concepts.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Entity.prototype.getKeyWithMultiLevelParent = function () {
Entity.prototype.getTask = function () {
// [START basic_entity]
var task = {
type: 'Personal',
category: 'Personal',
done: false,
priority: 4,
description: 'Learn Cloud Datastore'
Expand Down Expand Up @@ -151,7 +151,7 @@ Entity.prototype.testEntityWithParent = function (callback) {
var task = {
key: taskKey,
data: {
type: 'Personal',
category: 'Personal',
done: false,
priority: 4,
description: 'Learn Cloud Datastore'
Expand All @@ -167,7 +167,7 @@ Entity.prototype.testProperties = function (callback) {
// [START properties]
var task = [
{
name: 'type',
name: 'category',
value: 'Personal'
},
{
Expand Down Expand Up @@ -281,7 +281,7 @@ Entity.prototype.testLookup = function (callback) {
// Task found.

// entity.data = {
// type: 'Personal',
// category: 'Personal',
// done: false,
// priority: 4,
// description: 'Learn Cloud Datastore'
Expand Down Expand Up @@ -368,14 +368,14 @@ Entity.prototype.testBatchUpsert = function (callback) {
var taskKey2 = this.datastore.key(['Task', 2]);

var task1 = {
type: 'Personal',
category: 'Personal',
done: false,
priority: 4,
description: 'Learn Cloud Datastore'
};

var task2 = {
type: 'Work',
category: 'Work',
done: false,
priority: 8,
description: 'Integrate Cloud Datastore'
Expand Down Expand Up @@ -849,8 +849,8 @@ Query.prototype.testDistinctQuery = function (callback) {

// [START distinct_query]
var query = datastore.createQuery('Task')
.groupBy(['type', 'priority'])
.order('type')
.groupBy(['category', 'priority'])
.order('category')
.order('priority');
// [END distinct_query]

Expand All @@ -862,8 +862,8 @@ Query.prototype.testDistinctOnQuery = function (callback) {

// [START distinct_on_query]
var query = datastore.createQuery('Task')
.groupBy('type')
.order('type')
.groupBy('category')
.order('category')
.order('priority');
// [END distinct_on_query]

Expand Down