You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support "lazy evaluation" version of the paginate function, which can be created using the makePaginateLazy function:
import{makePaginateLazy}from'sequelize-cursor-pagination';Counter.paginateLazy=makePaginateLazy(Counter);// Same options are supported as with the regular paginate functionconstconnection=Counter.paginateLazy({limit: 10,});// Only one database query is performed in case we are only insterested in the edgesconstedges=awaitconnection.getEdges();// Otherwise, we can fetch the total count and page info as wellconsttotalCount=awaitconnection.getTotalCount();constpageInfo=awaitconnection.getPageInfo();