-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat v2.1: updated some kind of query schema
- Loading branch information
Showing
15 changed files
with
281 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/graphql/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,90 @@ | ||
fragment BlogPageView on BlogPage { | ||
fragment BlogPageOuterView on BlogPage { | ||
id | ||
slug | ||
title | ||
seoTitle | ||
thumb { | ||
id | ||
slug | ||
title | ||
seoTitle | ||
thumb { | ||
id | ||
rendition(width: 1920, height: 1080, format: "webp") { | ||
id | ||
url | ||
} | ||
rendition(width: 1920, height: 1080, format: "webp") { | ||
id | ||
url | ||
} | ||
} | ||
} | ||
|
||
fragment BlogPageViewInner on BlogPage { | ||
body { | ||
... on StreamFieldInterface { | ||
blockType | ||
} | ||
... on RichTextBlock { | ||
value | ||
} | ||
... on ImageBlock { | ||
caption | ||
link | ||
alignment | ||
image { | ||
url | ||
width | ||
height | ||
} | ||
} | ||
... on QuoteBlock { | ||
quote | ||
attribution | ||
} | ||
... on HeadingBlock { | ||
text | ||
importance | ||
} | ||
fragment BlogPageInnerView on BlogPage { | ||
body { | ||
... on StreamFieldInterface { | ||
blockType | ||
} | ||
... on RichTextBlock { | ||
value | ||
} | ||
... on ImageBlock { | ||
caption | ||
link | ||
alignment | ||
image { | ||
url | ||
width | ||
height | ||
} | ||
} | ||
... on QuoteBlock { | ||
quote | ||
attribution | ||
} | ||
... on HeadingBlock { | ||
text | ||
importance | ||
} | ||
} | ||
} | ||
|
||
fragment GalleryOuterView on Picture { | ||
id | ||
cap | ||
image { | ||
id | ||
url | ||
} | ||
imageDate | ||
} | ||
|
||
query GalleryListView { | ||
pages(contentType: "gallery.Picture") { | ||
...GalleryOuterView | ||
} | ||
} | ||
|
||
query GalleryPaginatedListView($offset: PositiveInt, $limit: PositiveInt) { | ||
pages(contentType: "gallery.Picture", offset: $offset, limit: $limit) { | ||
...GalleryOuterView | ||
} | ||
} | ||
|
||
query BlogListView { | ||
pages(contentType: "blog.BlogPage") { | ||
...BlogPageView | ||
} | ||
pages(contentType: "blog.BlogPage") { | ||
...BlogPageOuterView | ||
} | ||
} | ||
|
||
query BlogPaginatedListView($offset: PositiveInt, $limit: PositiveInt) { | ||
pages(contentType: "blog.BlogPage", offset: $offset, limit: $limit) { | ||
...BlogPageOuterView | ||
} | ||
} | ||
|
||
query BlogPreviewView($token: String) { | ||
page(id: 0, token: $token) { | ||
...BlogPageView | ||
...BlogPageViewInner | ||
} | ||
page(id: 0, token: $token) { | ||
...BlogPageOuterView | ||
...BlogPageInnerView | ||
} | ||
} | ||
|
||
query BlogLiveView($slug: String) { | ||
page(slug: $slug) { | ||
...BlogPageView | ||
...BlogPageViewInner | ||
} | ||
page(slug: $slug) { | ||
...BlogPageOuterView | ||
...BlogPageInnerView | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.