diff --git a/src/sql-cursor-pagination.ts b/src/sql-cursor-pagination.ts index bf4c91ad..a3bf1063 100644 --- a/src/sql-cursor-pagination.ts +++ b/src/sql-cursor-pagination.ts @@ -1,4 +1,3 @@ -import pMap from 'p-map'; import { notNull } from './assert'; import { RawCursor, buildCursor, encryptCursor, resolveCursor } from './cursor'; import { CursorSecret } from './cursor-secret'; @@ -462,6 +461,7 @@ async function _withPagination< : false; const seenCursors: Set = new Set(); + const { default: pMap } = await import('p-map'); const edgesWithRawCursor: _WithPaginationResultEdge[] = await pMap( lastNodes,