For switching between "key encoded string" and "separate key fields" (for debug purpose, but not only) you may use this web interface I made : http://datastore-key.appspot.com/
Valentin On Monday, January 12, 2015 at 10:20:52 AM UTC+1, Vinny P wrote: > > On Thu, Jan 8, 2015 at 9:57 AM, Rimma Rosenberg <[email protected] > <javascript:>> wrote: > >> Could you please tell me what I am doing wrong. I am trying to run GQL >> queries from Google App Engine site from Datastore Viewer. >> 1. I tried with '6192449487634432', 6192449487634432L, >> '6192449487634432L' >> >> SELECT * FROM Docprod where __key__ = KEY('Docprod', 6192449487634432) >> >> 2. Docprod is a child of 'mrwdocbkup', so I tried also without any >> success: >> >> SELECT * FROM Docprod where _key_ = KEY('mrwdocbkup', 4922171302346752, >> 'Docprod', 6192449487634432 ) >> > > > Can you confirm that you're using two underscores before and after the > *key* limiter, instead of just one? I.e. *__key__ *instead of *_key_*. > From your example above, the first select command properly uses two > underscores, but the second select command uses only 1 underscore before > and after. If it still doesn't work, can you screenshot the error screen > that pops up? > > If you can't get the GQL query to work, try using the Datastore Query page > in the new cloud console. Go to cloud.google.com/console, click on your > project, then navigate through Storage > Cloud Datastore > Query on the > navigation bar. You'll see a page that looks like this: > http://imgur.com/KKZWaFn . That interface is a bit easier to use to find > a particular entity. > > > > ----------------- > -Vinny P > Technology & Media Consultant > Chicago, IL > > App Engine Code Samples: http://www.learntogoogleit.com > > -- 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 http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/a5fa2776-26a8-4814-8d9b-0216ea53bca9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
