Skip to content

Commit

Permalink
Add id to essentials queries (#38)
Browse files Browse the repository at this point in the history
* Add `id` to essentials queries

* Add Swift types

* Add TypeScript types

Co-authored-by: GitHub Action <action@github.com>
  • Loading branch information
hallee and actions-user authored Jan 25, 2021
1 parent 5fdef5c commit 0b23d5a
Show file tree
Hide file tree
Showing 22 changed files with 72 additions and 34 deletions.
1 change: 1 addition & 0 deletions Queries/Collections/EssentialsByGuide.gql
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
query EssentialsByGuide($slug: String!) {
guides(last: 1, where: {slug: [$slug]}) {
nodes {
id
essentials(first: 1) {
nodes {
...CollectionParts
Expand Down
19 changes: 10 additions & 9 deletions Queries/Collections/EssentialsByObsession.gql
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
query EssentialsByObsession($slug: String!) {
obsessions(where: {slug: [$slug]}) {
nodes {
essentials(first: 1) {
nodes {
...CollectionParts
}
}
}
}
obsessions(last: 1, where: {slug: [$slug]}) {
nodes {
id
essentials(first: 1) {
nodes {
...CollectionParts
}
}
}
}
}
8 changes: 4 additions & 4 deletions Schemas/ContentSchema.operations.json

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

3 changes: 2 additions & 1 deletion Web/EssentialsByGuide.ts

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

5 changes: 3 additions & 2 deletions Web/EssentialsByObsession.ts

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

1 change: 1 addition & 0 deletions Web/dist-cjs/EssentialsByGuide.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export declare type EssentialsByGuideQuery = {
__typename?: 'RootQueryToGuideConnection';
nodes?: Types.Maybe<Array<Types.Maybe<{
__typename?: 'Guide';
id: string;
essentials?: Types.Maybe<{
__typename?: 'GuideToCollectionConnection';
nodes?: Types.Maybe<Array<Types.Maybe<({
Expand Down
2 changes: 1 addition & 1 deletion Web/dist-cjs/EssentialsByGuide.d.ts.map

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

1 change: 1 addition & 0 deletions Web/dist-cjs/EssentialsByGuide.js

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

Loading

0 comments on commit 0b23d5a

Please sign in to comment.