BadArgumentError: _MultiQuery with cursors requires __key__ order in ndb

后端 未结 5 2039
终归单人心
终归单人心 2021-01-18 01:27

I can\'t understand what this error means and apparently, no one ever got the same error on the internet

BadArgumentError: _MultiQuery with cursors re

5条回答
  •  被撕碎了的回忆
    2021-01-18 02:26

    The error message tries to tell you you that queries involving IN and cursors must be ordered by __key__ (which is the internal name for the key of the entity). (This is needed so that the results can be properly merged and made unique.) In this case you have to replace your .order() call with .order(SocialNotification._key).

提交回复
热议问题