Skip to content

Setting Property value types for Datastore Entities #553

@byrneciaran

Description

@byrneciaran

How do I set Property value types (e.g. dateTimeValue, IntegerValue, etc.) when inserting my entities in the example below. At the moment the Property value types are all set as strings

var entry = {
    "title":"Title",
    "start":"2014-02-01T09:28:56.321-10:00"
};

var ds = gcloud.datastore.dataset();
var key = ds.key(['Entry', 'Foo', 'Todo']);

ds.save({
    key: key,
    data: entry
}, callback);

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions