I'm passing an entities "id" as a string on a URL, for example:
..../foo/234565
I want to use the id in the following query:
//...i hace some code that gets stringId from the URL, and I verified that it works
stringId = ....
theKey, err := datastore.DecodeKey(stringId)
q := datastore.NewQuery("Foo").Filter("__key__ =", theKey)
The error I'm getting:
proto: can't skip unknown wire type 7 for datastore.Reference
Is there a simple way to convert stringId into a "Key"?