-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create BulletinsBySeries.gql * Add Swift types * Add TypeScript types Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
9ec7968
commit 56929a1
Showing
21 changed files
with
701 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.