fix: break out content type uid fetch to utils function

This commit is contained in:
Christel Westerberg
2024-04-29 10:49:19 +02:00
parent af96964fb2
commit 9f0b044daa
5 changed files with 68 additions and 64 deletions

View File

@@ -1,17 +1,11 @@
query GetContentTypeUid($locale: String!, $url: String!) {
all_content_page(where: { url: $url, locale: $locale }) {
items {
__typename
}
total
}
all_current_blocks_page(where: { url: $url, locale: $locale }) {
items {
__typename
}
total
}
all_loyalty_page(where: { url: $url, locale: $locale }) {
items {
__typename
}
total
}
}