Compare commits

...

6 Commits

Author SHA1 Message Date
14863e3357 Add day
All checks were successful
Tests / Tests (pull_request) Successful in 6s
2024-10-04 22:56:58 -06:00
Your Name
58f01c567c Add day alignment 2024-10-03 21:57:07 -06:00
937368c753 GetShotsWithMetadata accepts ids (#68)
Reviewed-on: #68
2024-10-03 12:36:35 -06:00
d8c11875d4 Merge pull request 'Update get shots with metadata' (#67) from kat/update-gql into master
Reviewed-on: #67
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-10-03 11:47:20 -06:00
bacd9e77f0 Update get shots with metadata
All checks were successful
Tests / Tests (pull_request) Successful in 14s
2024-10-03 11:42:39 -06:00
69d755ba32 Merge pull request 'Use ShotWithAllFeatures in getAllShots' (#66) from kat/use-fragment-get-shots into master
Reviewed-on: #66
2024-10-02 19:09:50 -06:00
3 changed files with 11 additions and 0 deletions

View File

@@ -1774,6 +1774,7 @@ export type QueryGetShotsByIdsArgs = {
export type QueryGetShotsWithMetadataArgs = { export type QueryGetShotsWithMetadataArgs = {
filterInput: FilterInput; filterInput: FilterInput;
ids?: InputMaybe<Array<Scalars["Int"]["input"]>>;
limit?: Scalars["Int"]["input"]; limit?: Scalars["Int"]["input"];
shotsPagination?: InputMaybe<GetShotsPagination>; shotsPagination?: InputMaybe<GetShotsPagination>;
}; };
@@ -2254,6 +2255,7 @@ export type GetShotsWithMetadataQueryVariables = Exact<{
filterInput: FilterInput; filterInput: FilterInput;
shotsPagination?: InputMaybe<GetShotsPagination>; shotsPagination?: InputMaybe<GetShotsPagination>;
limit?: InputMaybe<Scalars["Int"]["input"]>; limit?: InputMaybe<Scalars["Int"]["input"]>;
ids?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
}>; }>;
export type GetShotsWithMetadataQuery = { export type GetShotsWithMetadataQuery = {
@@ -2261,6 +2263,7 @@ export type GetShotsWithMetadataQuery = {
getShotsWithMetadata: { getShotsWithMetadata: {
__typename?: "GetShotsResult"; __typename?: "GetShotsResult";
count?: number | null; count?: number | null;
ids: Array<number>;
shots: Array<{ shots: Array<{
__typename?: "ShotGQL"; __typename?: "ShotGQL";
id: number; id: number;
@@ -3492,16 +3495,19 @@ export const GetShotsWithMetadataDocument = gql`
$filterInput: FilterInput! $filterInput: FilterInput!
$shotsPagination: GetShotsPagination $shotsPagination: GetShotsPagination
$limit: Int $limit: Int
$ids: [Int!]
) { ) {
getShotsWithMetadata( getShotsWithMetadata(
filterInput: $filterInput filterInput: $filterInput
shotsPagination: $shotsPagination shotsPagination: $shotsPagination
limit: $limit limit: $limit
ids: $ids
) { ) {
count count
shots { shots {
...ShotWithAllFeatures ...ShotWithAllFeatures
} }
ids
} }
} }
${ShotWithAllFeaturesFragmentDoc} ${ShotWithAllFeaturesFragmentDoc}
@@ -3522,6 +3528,7 @@ export const GetShotsWithMetadataDocument = gql`
* filterInput: // value for 'filterInput' * filterInput: // value for 'filterInput'
* shotsPagination: // value for 'shotsPagination' * shotsPagination: // value for 'shotsPagination'
* limit: // value for 'limit' * limit: // value for 'limit'
* ids: // value for 'ids'
* }, * },
* }); * });
*/ */

View File

@@ -21,16 +21,19 @@ query GetShotsWithMetadata(
$filterInput: FilterInput! $filterInput: FilterInput!
$shotsPagination: GetShotsPagination $shotsPagination: GetShotsPagination
$limit: Int $limit: Int
$ids: [Int!]
) { ) {
getShotsWithMetadata( getShotsWithMetadata(
filterInput: $filterInput filterInput: $filterInput
shotsPagination: $shotsPagination shotsPagination: $shotsPagination
limit: $limit limit: $limit
ids: $ids
) { ) {
count count
shots { shots {
...ShotWithAllFeatures ...ShotWithAllFeatures
} }
ids
} }
} }

View File

@@ -11,6 +11,7 @@ type Query {
): [MakePercentageIntervalGQL!]! ): [MakePercentageIntervalGQL!]!
getShotsWithMetadata( getShotsWithMetadata(
filterInput: FilterInput! filterInput: FilterInput!
ids: [Int!] = null
shotsPagination: GetShotsPagination = null shotsPagination: GetShotsPagination = null
limit: Int! = 500 limit: Int! = 500
): GetShotsResult! ): GetShotsResult!