Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit db2cc44

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎datastore/cloud-client/snippets.py

Copy file name to clipboardExpand all lines: datastore/cloud-client/snippets.py
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.