Google app engine 使用Appengine管理控制台数据存储查看器查询父级的所有子级
我有一个名为RouteCompletion的实体,它将路由标识为其父级(使用Objectify@Parent注释) 在AppEngine管理控制台中,我可以通过编写标准的键来查询特定的子项Google app engine 使用Appengine管理控制台数据存储查看器查询父级的所有子级,google-app-engine,gql,Google App Engine,Gql,我有一个名为RouteCompletion的实体,它将路由标识为其父级(使用Objectify@Parent注释) 在AppEngine管理控制台中,我可以通过编写标准的键来查询特定的子项 SELECT * FROM RouteCompletion where __key__ = Key('Route',5704906207920128,'RouteCompletion','gc-136985405') 返回预期结果: 名称=gc-136985405 agxzfnRuLWFwaS1kZXZy
SELECT * FROM RouteCompletion where __key__ = Key('Route',5704906207920128,'RouteCompletion','gc-136985405')
返回预期结果:
- 名称=gc-136985405
- agxzfnRuLWFwaS1kZXZyGgsSCEFjdGl2aXR5IgxnYy0xMzY5ODU0MDUM
- 活动:名称=gc-136985405
我想找到同一位家长的所有孩子。我试过:
SELECT * FROM RouteCompletion where __key__ = Key('Route',5704906207920128)
该查询是有效的GQL,但不返回任何结果 使用
具有祖先
而不是=
SELECT * FROM RouteCompletion where ANCESTOR is Key('Route',5704906207920128)
SELECT * FROM RouteCompletion where __key__ has ancestor Key(Route,5704906207920128)
使用
具有祖先
而不是=
SELECT * FROM RouteCompletion where __key__ has ancestor Key(Route,5704906207920128)
使用
具有祖先
而不是=
SELECT * FROM RouteCompletion where __key__ has ancestor Key(Route,5704906207920128)
使用
具有祖先
而不是=
SELECT * FROM RouteCompletion where __key__ has ancestor Key(Route,5704906207920128)
不起作用。我得到:GQL查询错误:在第1行第34列遇到“祖先”。应为“false”、“null”、“true”、、、中的一个无效。我得到:GQL查询错误:在第1行第34列遇到“祖先”。应为“false”、“null”、“true”、、、中的一个无效。我得到:GQL查询错误:在第1行第34列遇到“祖先”。应为“false”、“null”、“true”、、、中的一个无效。我得到:GQL查询错误:在第1行第34列遇到“祖先”。应为“false”、“null”、“true”、、、、中的一个,