@inrupt/solid-client-access-grants
    Preparing search index...

    Function paginatedQuery

    • Query for Access Credential (Access Requests, Access Grants or Access Denials) based on a given filter, and traverses all of the result pages.

      Parameters

      • filter: AccessGrantFilter | AccessRequestFilter

        The query filter

      • options: {
            fetch: {
                (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
                (input: string | URL | Request, init?: RequestInit): Promise<Response>;
            };
            queryEndpoint: URL;
        }

        Query options

        • fetch: {
              (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
              (input: string | URL | Request, init?: RequestInit): Promise<Response>;
          }
        • queryEndpoint: URL

      Returns AsyncGenerator<CredentialResult, void, unknown>

      an async iterator going through the result pages

      3.2.0

       const pages = paginatedQuery(
      {},
      {
      fetch: session.fetch,
      queryEndpoint: new URL("https://vc.example.org/query"),
      },
      );
      for await (const page of pages) {
      // do something with the result page.
      }