Reputation: 20429
I have several records in my database with the same parent. How can I get all of them by parent?
Upvotes: 1
Views: 362
Reputation: 20429
OK, looks like the following code works:
items = ITEM.gql('WHERE ANCESTOR IS :parent', parent=parent_key).fetch(5)
Upvotes: 2