I have two kinds:
class Professor(ndb.Model):
name = ndb.StringProperty()
email = ndb.StringProperty()
class Student(ndb.Model):
professor = ndb.KeyProperty(kind=Professor)
name = ndb.StringProperty()
age = ndb.IntegerProperty()
I want to find all the Student entities where Professor name is "Snape".
How can I do this?
Do I have to keep professor_name on Student too to achieve what I want?
Or if I take the "One To Many" example of
https://cloud.google.com/appengine/articles/modeling. Then I want to find
all the PhoneNumber entities where Contact.name is "scott". How to do this.
The appengine example only tells how to filter on PhoneNumber attributes.
What if I want to filter on the related Kind, i.e Contact attributes.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/565c8284-0073-4793-b441-e5fc1f92044d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.