fix: break out content type uid fetch to utils function
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user