diff --git a/.changeset/chatty-suns-mix.md b/.changeset/chatty-suns-mix.md new file mode 100644 index 00000000..5d303dce --- /dev/null +++ b/.changeset/chatty-suns-mix.md @@ -0,0 +1,6 @@ +--- +"@pantheon-systems/pcc-sdk-core": patch +--- + +Fixed issue where some GQL parameters would not be passed to the API in +`getAllArticles` diff --git a/packages/core/src/lib/gql.ts b/packages/core/src/lib/gql.ts index 821eea49..e221dfbd 100644 --- a/packages/core/src/lib/gql.ts +++ b/packages/core/src/lib/gql.ts @@ -65,11 +65,21 @@ export function generateListArticlesGQL({ }) { return gql` query ListArticles( + $pageSize: Int + $sortBy: ArticleSortField + $sortOrder: SortOrder + $cursor: Float + $metadataFilters: String $contentType: ContentType $publishingLevel: PublishingLevel $filter: ArticleFilterInput ) { articlesv2( + pageSize: $pageSize + sortBy: $sortBy + sortOrder: $sortOrder + cursor: $cursor + metadataFilters: $metadataFilters contentType: $contentType publishingLevel: $publishingLevel filter: $filter