Skip to content

Commit

Permalink
docs(samples): Update datastore_basic_entity sample to include `taskK…
Browse files Browse the repository at this point in the history
…ey` definition (#1350)
  • Loading branch information
BenWhitehead authored May 8, 2019
1 parent 7b355b5 commit 3656dad
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ public void testArrayValue() {
@Test
public void testBasicEntity() {
// [START datastore_basic_entity]
Key taskKey = datastore.newKeyFactory()
.setKind("Task")
.newKey("sampleTask");
Entity task = Entity.newBuilder(taskKey)
.set("category", "Personal")
.set("done", false)
Expand Down

0 comments on commit 3656dad

Please sign in to comment.