Say I have:
class Like(db.Model): user = db.ReferenceProperty(User,collection_name='likes') photo = db.ReferenceProperty(Photo,collection_name='likes_received') created = db.DateTimeProperty(auto_now_add=True)
Is it possible to run a projection request that returns only a list of keys for photos?
photos = db.GqlQuery("SELECT photo FROM Like WHERE created < DATETIME(2013, 1, 1, 0, 0, 0)").fetch(10)
The above code creates:
BadValueError: Unsupported data type (<class 'models.Photo'>)
source share