We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f210260 commit ce91a7aCopy full SHA for ce91a7a
src/index.ts
@@ -130,7 +130,7 @@ export class Cinnamon {
130
}
131
132
async allPages<T>(
133
- func: (
+ fetchRelayConnection: (
134
after: PageInfo['endCursor'],
135
) => Promise<{
136
pageInfo?: PageInfo;
@@ -142,7 +142,7 @@ export class Cinnamon {
142
const getPage = async (
143
after: PageInfo['endCursor'] = '',
144
): Promise<void> => {
145
- const { edges, pageInfo } = await func(after);
+ const { edges, pageInfo } = await fetchRelayConnection(after);
146
147
result.push(...edges.map(({ node }: { node: T }) => node));
148
0 commit comments