1

これがバグなのか、私が抱えている概念的な誤解なのかわからない。私がやりたいのは、基本的に、ここのドキュメントで概説されているように、前と次のページングカーソルを設定することです。ただし、クエリを射影クエリにしたい場合を除きます。これは可能ですか?例えば:

# Set up.
q = Bar.query()
q_forward = q.order(Bar.key)
q_reverse = q.order(-Bar.key)

# Fetch a page going forward.
bars, cursor, more = q_forward.fetch_page(10, start_cursor=initial_cursor, projection=my_projection)

# Fetch the same page going backward.
rev_cursor = cursor.reversed()
bars1, cursor1, more1 = q_reverse.fetch_page(10, start_cursor=rev_cursor, projection=my_projection)

このようなことをするとBadRequestError: Cursor does not match query、2番目fetch_page(反転カーソル上のもの)が実行されます。

4

0 に答える 0