Service that fetches the list of site pages using Sitecore's GraphQL API. Used to handle multiple sites This list is used for SSG and Export functionality.

Mixes

SearchQueryService

Hierarchy

Constructors

Properties

instance

Accessors

Methods

  • Fetch a flat list of all pages that belong to all the requested sites and have a version in the specified language(s).

    Parameters

    • languages: string[]

      Fetch pages that have versions in this language(s).

    • formatStaticPath: ((path, language, isStaticRender) => StaticPath)

      Function for transforming the raw search results into (@see StaticPath) types.

        • (path, language, isStaticRender): StaticPath
        • Parameters

          • path: string[]
          • language: string
          • isStaticRender: boolean

          Returns StaticPath

    Returns Promise<StaticPath[]>

    list of pages

    Throws

    if the list of languages is empty.

    Throws

    if the any of the languages is an empty string.

Generated using TypeDoc