Skip to content

Commit

Permalink
fix: revert to use string
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomariscal committed Aug 7, 2024
1 parent d9c6863 commit 9539322
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type PaginationVariables = {
* @param {string} params.gqlQuery - The GraphQL query string with a '__WHERE_CLAUSE__' placeholder.
* @param {number} params.pageSize - The number of items to fetch per page.
* @param {string} params.filter - Additional filter criteria for the query.
* @param {string} params.entity - The name of the entity being queried. Currently only supports 'announcements'.
* @param {string} params.entity - The name of the entity being queried.
* @param {string} [params.lastId] - The ID of the last item from the previous page, used for pagination.
* @yields {T[]} An array of entities of type T for each page of results.
* @throws {Error} If there's an error fetching the data from the subgraph.
Expand All @@ -41,7 +41,7 @@ export async function* fetchPages<T extends { id: string }>({
gqlQuery: string;
pageSize: number;
filter: string;
entity: 'announcements';
entity: string;
lastId?: string;
}): AsyncGenerator<T[], void, unknown> {
// Set up variables for the GraphQL query
Expand Down

0 comments on commit 9539322

Please sign in to comment.