Skip to content

Commit

Permalink
Create BulletinsBySeries.gql (#33)
Browse files Browse the repository at this point in the history
* Create BulletinsBySeries.gql

* Add Swift types

* Add TypeScript types

Co-authored-by: GitHub Action <action@github.com>
  • Loading branch information
hallee and actions-user authored Jan 13, 2021
1 parent 9ec7968 commit 56929a1
Show file tree
Hide file tree
Showing 21 changed files with 701 additions and 4 deletions.
27 changes: 27 additions & 0 deletions Queries/Bulletins/BulletinsBySeries.gql
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
query BulletinsBySeries(
$after: String = ""
$perPage: Int
$slug: [String]
) {
serieses(
where: {
slug: $slug
}
) {
nodes {
...SeriesParts
posts:bulletins(
after: $after
first: $perPage
) {
nodes {
...BulletinParts
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
}
4 changes: 4 additions & 0 deletions Schemas/ContentSchema.operations.json

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

71 changes: 71 additions & 0 deletions Web/BulletinsBySeries.ts

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

62 changes: 62 additions & 0 deletions Web/dist-cjs/BulletinsBySeries.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import type * as Types from './types';
import type { SeriesPartsFragment } from './SeriesParts';
import type { BulletinPartsFragment } from './BulletinParts';
import * as Apollo from '@apollo/client';
export declare type BulletinsBySeriesQueryVariables = Types.Exact<{
after?: Types.Maybe<Types.Scalars['String']>;
perPage?: Types.Maybe<Types.Scalars['Int']>;
slug?: Types.Maybe<Array<Types.Maybe<Types.Scalars['String']>>>;
}>;
export declare type BulletinsBySeriesQuery = {
__typename?: 'RootQuery';
serieses?: Types.Maybe<{
__typename?: 'RootQueryToSeriesConnection';
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Series';
posts?: Types.Maybe<{
__typename?: 'SeriesToBulletinConnection';
nodes?: Types.Maybe<Array<Types.Maybe<({
__typename?: 'Bulletin';
} & BulletinPartsFragment)>>>;
pageInfo?: Types.Maybe<{
__typename?: 'WPPageInfo';
endCursor?: Types.Maybe<string>;
hasNextPage: boolean;
}>;
}>;
} & SeriesPartsFragment)>>>;
}>;
};
export declare const BulletinsBySeriesDocument: Apollo.DocumentNode;
/**
* __useBulletinsBySeriesQuery__
*
* To run a query within a React component, call `useBulletinsBySeriesQuery` and pass it any options that fit your needs.
* When your component renders, `useBulletinsBySeriesQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useBulletinsBySeriesQuery({
* variables: {
* after: // value for 'after'
* perPage: // value for 'perPage'
* slug: // value for 'slug'
* },
* });
*/
export declare function useBulletinsBySeriesQuery(baseOptions?: Apollo.QueryHookOptions<BulletinsBySeriesQuery, BulletinsBySeriesQueryVariables>): Apollo.QueryResult<BulletinsBySeriesQuery, Types.Exact<{
after?: string | null | undefined;
perPage?: number | null | undefined;
slug?: (string | null)[] | null | undefined;
}>>;
export declare function useBulletinsBySeriesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BulletinsBySeriesQuery, BulletinsBySeriesQueryVariables>): Apollo.QueryTuple<BulletinsBySeriesQuery, Types.Exact<{
after?: string | null | undefined;
perPage?: number | null | undefined;
slug?: (string | null)[] | null | undefined;
}>>;
export declare type BulletinsBySeriesQueryHookResult = ReturnType<typeof useBulletinsBySeriesQuery>;
export declare type BulletinsBySeriesLazyQueryHookResult = ReturnType<typeof useBulletinsBySeriesLazyQuery>;
export declare type BulletinsBySeriesQueryResult = Apollo.QueryResult<BulletinsBySeriesQuery, BulletinsBySeriesQueryVariables>;
//# sourceMappingURL=BulletinsBySeries.d.ts.map
1 change: 1 addition & 0 deletions Web/dist-cjs/BulletinsBySeries.d.ts.map

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

72 changes: 72 additions & 0 deletions Web/dist-cjs/BulletinsBySeries.js

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/BulletinsBySeries.js.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/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export * from './ArticlesByTopic';
export * from './AuthorParts';
export * from './BlockParts';
export * from './BulletinParts';
export * from './BulletinsBySeries';
export * from './Collection';
export * from './CollectionParts';
export * from './Collections';
Expand Down
Loading

0 comments on commit 56929a1

Please sign in to comment.