Merge pull request 'Use getOrderedShots when requesting getShotsWithVideoGql
' (#100) from loewy/use-ordered-shots-to-get-thumbnail into master
Reviewed-on: #100
This commit is contained in:
commit
eec79b2dc5
@ -2804,12 +2804,13 @@ export type UpdateShotAnnotationsMutation = {
|
|||||||
|
|
||||||
export type GetShotsWithVideoGqlQueryVariables = Exact<{
|
export type GetShotsWithVideoGqlQueryVariables = Exact<{
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
|
shotsOrdering?: InputMaybe<GetShotsOrdering>;
|
||||||
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetShotsWithVideoGqlQuery = {
|
export type GetShotsWithVideoGqlQuery = {
|
||||||
__typename?: "Query";
|
__typename?: "Query";
|
||||||
getShotsWithMetadata: {
|
getOrderedShots: {
|
||||||
__typename?: "GetShotsResult";
|
__typename?: "GetShotsResult";
|
||||||
shots: Array<{
|
shots: Array<{
|
||||||
__typename?: "ShotGQL";
|
__typename?: "ShotGQL";
|
||||||
@ -4475,8 +4476,16 @@ export type UpdateShotAnnotationsMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
UpdateShotAnnotationsMutationVariables
|
UpdateShotAnnotationsMutationVariables
|
||||||
>;
|
>;
|
||||||
export const GetShotsWithVideoGqlDocument = gql`
|
export const GetShotsWithVideoGqlDocument = gql`
|
||||||
query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
|
query GetShotsWithVideoGql(
|
||||||
getShotsWithMetadata(filterInput: $filterInput, limit: $limit) {
|
$filterInput: FilterInput!
|
||||||
|
$shotsOrdering: GetShotsOrdering
|
||||||
|
$limit: Int
|
||||||
|
) {
|
||||||
|
getOrderedShots(
|
||||||
|
filterInput: $filterInput
|
||||||
|
shotsOrdering: $shotsOrdering
|
||||||
|
limit: $limit
|
||||||
|
) {
|
||||||
shots {
|
shots {
|
||||||
id
|
id
|
||||||
videoId
|
videoId
|
||||||
@ -4502,6 +4511,7 @@ export const GetShotsWithVideoGqlDocument = gql`
|
|||||||
* const { data, loading, error } = useGetShotsWithVideoGqlQuery({
|
* const { data, loading, error } = useGetShotsWithVideoGqlQuery({
|
||||||
* variables: {
|
* variables: {
|
||||||
* filterInput: // value for 'filterInput'
|
* filterInput: // value for 'filterInput'
|
||||||
|
* shotsOrdering: // value for 'shotsOrdering'
|
||||||
* limit: // value for 'limit'
|
* limit: // value for 'limit'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
|
@ -40,8 +40,16 @@ mutation UpdateShotAnnotations(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
|
query GetShotsWithVideoGql(
|
||||||
getShotsWithMetadata(filterInput: $filterInput, limit: $limit) {
|
$filterInput: FilterInput!
|
||||||
|
$shotsOrdering: GetShotsOrdering
|
||||||
|
$limit: Int
|
||||||
|
) {
|
||||||
|
getOrderedShots(
|
||||||
|
filterInput: $filterInput
|
||||||
|
shotsOrdering: $shotsOrdering
|
||||||
|
limit: $limit
|
||||||
|
) {
|
||||||
shots {
|
shots {
|
||||||
id
|
id
|
||||||
videoId
|
videoId
|
||||||
|
Loading…
Reference in New Issue
Block a user