Skip to content

Commit

Permalink
QZ-630 Added support for returning contentType on posts. (#89)
Browse files Browse the repository at this point in the history
* QZ-630 Added support for returning contentType on posts.

* Add Swift types

* Add TypeScript types

Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
ramesh-kumar and actions-user authored Feb 16, 2022
1 parent ac510a2 commit 12660a4
Show file tree
Hide file tree
Showing 18 changed files with 168 additions and 12 deletions.
5 changes: 5 additions & 0 deletions Queries/Fragments/ArticleParts.gql
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ fragment ArticleParts on Post {
brandSafety
canonicalUrl
colorScheme
contentType {
node {
name
}
}
excerpt
featuredImageSize
flags {
Expand Down
12 changes: 12 additions & 0 deletions Schemas/ContentSchema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Schemas/ContentSchema.operations.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion Web/ArticleParts.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Web/dist-cjs/ArticleParts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ export declare type ArticlePartsFragment = ({
blocks?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Block';
} & BlockPartsFragment)>>>;
contentType?: Types.Maybe<{
__typename?: 'ContentNodeToContentTypeConnectionEdge';
node?: Types.Maybe<{
__typename?: 'ContentType';
name?: Types.Maybe<string>;
}>;
}>;
flags?: Types.Maybe<{
__typename?: 'PostToFlagConnection';
nodes?: Types.Maybe<Array<Types.Maybe<{
Expand Down
Loading

0 comments on commit 12660a4

Please sign in to comment.