diff --git a/.changeset/fuzzy-students-report.md b/.changeset/fuzzy-students-report.md new file mode 100644 index 000000000..bcf2b6edb --- /dev/null +++ b/.changeset/fuzzy-students-report.md @@ -0,0 +1,5 @@ +--- +"@frameless/overige-objecten-api": minor +--- + +Include `pdc_category` and `pdc_subcategories` relations in the `getAllProducts` and `getVacItems` GraphQL query. diff --git a/apps/overige-objecten-api/src/queries/index.ts b/apps/overige-objecten-api/src/queries/index.ts index 393492cd4..34b3be8e2 100644 --- a/apps/overige-objecten-api/src/queries/index.ts +++ b/apps/overige-objecten-api/src/queries/index.ts @@ -32,6 +32,22 @@ query getAllProducts( slug uuid locale + pdc_subcategories{ + data{ + id + attributes{ + pdc_category{ + data{ + id + attributes{ + title + } + } + } + title + } + } + } updatedAt createdAt locale @@ -262,6 +278,22 @@ export const GET_PRODUCT_BY_UUID = gql(` slug uuid locale + pdc_subcategories{ + data{ + id + attributes{ + pdc_category{ + data{ + id + attributes{ + title + } + } + } + title + } + } + } updatedAt createdAt locale @@ -686,6 +718,22 @@ query getAllVacItems($page: Int, $pageSize: Int, $start: Int, $limit: Int) { createdAt updatedAt title + subcategories{ + data{ + id + attributes{ + title + pdc_category{ + data{ + id + attributes{ + title + } + } + } + } + } + } contact_information_internal { data { attributes { @@ -754,6 +802,22 @@ query getVacItemByUUID($uuid: String) { createdAt updatedAt title + subcategories{ + data{ + id + attributes{ + title + pdc_category{ + data{ + id + attributes{ + title + } + } + } + } + } + } contact_information_internal { data { attributes {