From 9bd767abbb276f1ef1937a6caa65270d4553e730 Mon Sep 17 00:00:00 2001 From: Andrew Glago Date: Wed, 10 Jul 2024 13:48:17 +0000 Subject: [PATCH 1/2] feat: add metadata filters to generateListArticlesGQL --- packages/core/src/lib/gql.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 From 11e0509724763e9766c22c70f026c82427893ea6 Mon Sep 17 00:00:00 2001 From: Andrew Glago Date: Wed, 10 Jul 2024 17:44:31 +0000 Subject: [PATCH 2/2] chore: add changeset --- .changeset/chatty-suns-mix.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/chatty-suns-mix.md 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`