What's the equivalent of Entity.all(keys_only=True).fetch(20) in NDB?

后端 未结 1 2093
灰色年华
灰色年华 2021-02-20 13:30

How do I get the equivalent result of the following query in NDB?

Entity.all(keys_only=True).fetch(20)

I know you can pass \'keys_only=Tr

相关标签:
1条回答
  • 2021-02-20 14:08

    Found it in the GAE NDB Docs. The answer is Entity.query().fetch(20,keys_only=True).

    0 讨论(0)
提交回复
热议问题