keystonejs/keystone-classic

Deprecate List.prototype.paginate

Open

#4,126 创建于 2017年3月20日

在 GitHub 查看
 (2 评论) (2 反应) (0 负责人)JavaScript (14,656 star) (2,288 fork)batch import
help wanted

描述

Basically, this is too opinionated and fragile for us to continue supporting.

It used to work well with mongoose 3 and callback patterns but with promises now more popular thanks to async/await, and issues where the find() and count() queries may get out of sync with .where() / etc chaining, I think the best option is to deprecate the whole thing and let users deal with it however is most appropriate for their specific use-case.

Let's add a deprecation warning on first use to Keystone 4, and remove in the next major.

贡献者指南