Skip to content

Commit

Permalink
QZ-647 Updated CollectionParts fragment to include tags (#88)
Browse files Browse the repository at this point in the history
* QZ-647 Updated CollectionParts fragment to include tag slug.

* Updated CollectionParts fragment to include TagParts.

* Updates to CollectionParts fragment

* Add Swift types

* Add TypeScript types

Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
ramesh-kumar and actions-user authored Feb 10, 2022
1 parent 29af7e4 commit ac510a2
Show file tree
Hide file tree
Showing 12 changed files with 174 additions and 37 deletions.
10 changes: 10 additions & 0 deletions Queries/Fragments/CollectionParts.gql
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ fragment CollectionParts on Collection {
excerpt
modifiedGmt
slug
tags(
where: {
orderby: COUNT
},
last: 10
) {
nodes {
slug
}
}
featuredImage {
...MediaParts
}
Expand Down
40 changes: 20 additions & 20 deletions Schemas/ContentSchema.operations.json

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion Web/CollectionParts.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/CollectionParts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ export declare type CollectionPartsFragment = {
excerpt?: Types.Maybe<string>;
modifiedGmt?: Types.Maybe<string>;
slug?: Types.Maybe<string>;
tags?: Types.Maybe<{
__typename?: 'CollectionToTagConnection';
nodes?: Types.Maybe<Array<Types.Maybe<{
__typename?: 'Tag';
slug?: Types.Maybe<string>;
}>>>;
}>;
featuredImage?: Types.Maybe<({
__typename?: 'MediaItem';
} & MediaPartsFragment)>;
Expand Down
2 changes: 1 addition & 1 deletion Web/dist-cjs/CollectionParts.d.ts.map

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

5 changes: 5 additions & 0 deletions Web/dist-cjs/CollectionParts.js

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

2 changes: 1 addition & 1 deletion Web/dist-cjs/CollectionParts.js.map

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/CollectionParts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ export declare type CollectionPartsFragment = {
excerpt?: Types.Maybe<string>;
modifiedGmt?: Types.Maybe<string>;
slug?: Types.Maybe<string>;
tags?: Types.Maybe<{
__typename?: 'CollectionToTagConnection';
nodes?: Types.Maybe<Array<Types.Maybe<{
__typename?: 'Tag';
slug?: Types.Maybe<string>;
}>>>;
}>;
featuredImage?: Types.Maybe<({
__typename?: 'MediaItem';
} & MediaPartsFragment)>;
Expand Down
2 changes: 1 addition & 1 deletion Web/dist/CollectionParts.d.ts.map

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

5 changes: 5 additions & 0 deletions Web/dist/CollectionParts.js

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

2 changes: 1 addition & 1 deletion Web/dist/CollectionParts.js.map

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

Loading

0 comments on commit ac510a2

Please sign in to comment.