diff --git a/packages/sitecore-jss-nextjs/src/services/graphql-sitemap-service.ts b/packages/sitecore-jss-nextjs/src/services/graphql-sitemap-service.ts index aad7d537c6..38764a019d 100644 --- a/packages/sitecore-jss-nextjs/src/services/graphql-sitemap-service.ts +++ b/packages/sitecore-jss-nextjs/src/services/graphql-sitemap-service.ts @@ -10,8 +10,8 @@ const defaultQuery = /* GraphQL */ ` query SitemapQuery( $siteName: String!, $language: String!, - $includedPaths: String[], - $excludedPaths: String[], + $includedPaths: [String], + $excludedPaths: [String], $pageSize: Int = 10, $after: String ) { @@ -29,8 +29,8 @@ query SitemapQuery( endCursor hasNext } - results: routesResult{ - path: routePath + results{ + path: routePath } } }