Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fuzzy-students-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@frameless/overige-objecten-api": minor
---

Include `pdc_category` and `pdc_subcategories` relations in the `getAllProducts` and `getVacItems` GraphQL query.
64 changes: 64 additions & 0 deletions apps/overige-objecten-api/src/queries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@ query getAllProducts(
slug
uuid
locale
pdc_subcategories{
data{
id
attributes{
pdc_category{
data{
id
attributes{
title
}
}
}
title
}
}
}
updatedAt
createdAt
locale
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
Loading