作成されたレコード時間フィールドの前と後のポストを取得するなど
記事を取得するには、次のステートメントを使用してみてください
# Created is the time of the creation of the current article
# Before a
prev_post = db.Post.find ({'created': {'$ lt': created}}, sort = [('created', -1)], limit = 1)
# After a
next_post = db.Post.find ({'created': {'$ gt': created}}, sort = [('created', 1)], limit = 1)
結果が不連続になり、いくつかのレコードがスキップされることがあります。理由はわかりませんが、FIND を誤解しているのかもしれません。助けてください。