Skip to content

Commit

Permalink
Merge pull request #287 from pantheon-systems/ag/add-metadata-filters
Browse files Browse the repository at this point in the history
Add missing parameters to generateListArticlesGQL
  • Loading branch information
a11rew authored Jul 11, 2024
2 parents ca69e89 + 11e0509 commit fce87af
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/chatty-suns-mix.md
Original file line number Diff line number Diff line change
@@ -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`
10 changes: 10 additions & 0 deletions packages/core/src/lib/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fce87af

Please sign in to comment.