LA_
LA_

Reputation: 20429

How to get all records from GAE datastore with particular parent?

I have several records in my database with the same parent. How can I get all of them by parent?

Upvotes: 1

Views: 362

Answers (1)

LA_
LA_

Reputation: 20429

OK, looks like the following code works:

items = ITEM.gql('WHERE ANCESTOR IS :parent', parent=parent_key).fetch(5)

Upvotes: 2

Related Questions