What is a way to create an Api method in objectify that lists all the most recent posts by the people you follow?
Suppose you have Profile
entities that write Post
entities. Each Post
has a Profile
as its parent. And each Profile
has a list of keys of other Profile
s that it follows.
How can I create a query (with a cursor) that lists all the Post
's by my followers sorted by date descending?
Should I structure my model differently from what I have described above in order to be able to do this? I thought I could do it this way, but I learned from that post that Objectify has some limitations. One of which being you cannot use a cursor
on a IN
filter. Documentation here also says:
You can filter on id properties if this query is restricted to a Class and the entity has no @Parent. If you are having trouble working around this limitation, please consult the objectify-appengine google group.
The objectify-appengine google group is not very active...