Skip to content

Commit db2cc44

Browse files
sorced-jimkurtisvg
authored andcommitted
Clarify data-store ancestor snippet (GoogleCloudPlatform#1938)
1 parent b4c2b18 commit db2cc44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

datastore/cloud-client/snippets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ def ancestor_query(client):
331331
client.put(task)
332332

333333
# [START datastore_ancestor_query]
334+
# Query filters are omitted in this example as any ancestor queries with a
335+
# non-key filter require a composite index.
334336
ancestor = client.key('TaskList', 'default')
335337
query = client.query(kind='Task', ancestor=ancestor)
336338
# [END datastore_ancestor_query]

0 commit comments

Comments
 (0)