I want to use look like
datastore.NewQuery("Article").Filter("ID =", id)
to get entity key.
How do this?
Sorry for my poor English. Thanks!
I want to use look like
datastore.NewQuery("Article").Filter("ID =", id)
to get entity key.
How do this?
Sorry for my poor English. Thanks!
I never tried Go but I'll give it a shot:
k := datastore.NewKey(c, "Activity", "", id, nil)
q := datastore.NewQuery("Article").Filter("__key__ =", k)
Where c
is your appengine.Context