feat: graphql client with fetches for initial pages
This commit is contained in:
32
lib/graphql/Query/CurrentBlockPage.graphql
Normal file
32
lib/graphql/Query/CurrentBlockPage.graphql
Normal file
@@ -0,0 +1,32 @@
|
||||
#import "../Fragments/Aside/Contact.graphql"
|
||||
#import "../Fragments/Aside/Puff.graphql"
|
||||
#import "../Fragments/Blocks/List.graphql"
|
||||
#import "../Fragments/Blocks/Preamble.graphql"
|
||||
#import "../Fragments/Blocks/Puff.graphql"
|
||||
#import "../Fragments/Blocks/Text.graphql"
|
||||
#import "../Fragments/Hero.graphql"
|
||||
|
||||
query GetCurrentBlockPage($locale: String!, $url: String!) {
|
||||
all_current_blocks_page(limit: 1, locale: $locale, where: { url: $url }) {
|
||||
items {
|
||||
aside {
|
||||
__typename
|
||||
...ContactAside
|
||||
...PuffAside
|
||||
}
|
||||
blocks {
|
||||
__typename
|
||||
...ListBlock
|
||||
...PreambleBlock
|
||||
...PuffBlock
|
||||
...TextBlock
|
||||
}
|
||||
hero {
|
||||
...Hero
|
||||
}
|
||||
title
|
||||
url
|
||||
}
|
||||
total
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user