Skip to content

Commit

Permalink
QZ-446 Added support for fetching sponsor data on Nugs via GraphQL. (#83
Browse files Browse the repository at this point in the history
)

* QZ-446 Added support for fetching sponsor data on Nugs via GraphQL.

* Add Swift types

* Add TypeScript types

Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
ramesh-kumar and actions-user authored Dec 30, 2021
1 parent 154f2d3 commit abd8a27
Show file tree
Hide file tree
Showing 28 changed files with 245 additions and 37 deletions.
5 changes: 4 additions & 1 deletion Queries/Nugs/Nug.gql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ query Nug(
}
) {
nodes {
...NugParts
...NugParts,
bulletin {
...BulletinDataParts
}
}
}
}
3 changes: 3 additions & 0 deletions Queries/Nugs/NugsByTag.gql
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ query NugsByTag(
) {
nodes {
...NugParts
bulletin {
...BulletinDataParts
}
}
}
}
24 changes: 18 additions & 6 deletions Schemas/ContentSchema.json

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

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.

13 changes: 11 additions & 2 deletions Web/Nug.ts

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

13 changes: 11 additions & 2 deletions Web/NugsByTag.ts

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

4 changes: 4 additions & 0 deletions Web/dist-cjs/Nug.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type * as Types from './types';
import type { NugPartsFragment } from './NugParts';
import type { BulletinDataPartsFragment } from './BulletinDataParts';
import * as Apollo from '@apollo/client';
export declare type NugQueryVariables = Types.Exact<{
id: Types.Scalars['Int'];
Expand All @@ -10,6 +11,9 @@ export declare type NugQuery = {
__typename?: 'RootQueryToNugConnection';
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Nug';
bulletin?: Types.Maybe<({
__typename?: 'BulletinData';
} & BulletinDataPartsFragment)>;
} & NugPartsFragment)>>>;
}>;
};
Expand Down
2 changes: 1 addition & 1 deletion Web/dist-cjs/Nug.d.ts.map

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

7 changes: 6 additions & 1 deletion Web/dist-cjs/Nug.js

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

Loading

0 comments on commit abd8a27

Please sign in to comment.