Add user to shot gql
This commit is contained in:
parent
e86f40c620
commit
92c18f8bf7
@ -21,7 +21,7 @@
|
|||||||
in
|
in
|
||||||
with pkgs; {
|
with pkgs; {
|
||||||
devShell = mkShell {
|
devShell = mkShell {
|
||||||
buildInputs = [nodejs yarn watchman alejandra nodePackages.prettier];
|
buildInputs = [nodejs yarn watchman alejandra nodePackages.prettier just];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
14
justfile
Normal file
14
justfile
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
NIX := "LD_LIBRARY_PATH='' nix"
|
||||||
|
|
||||||
|
prettier-gql:
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euxo pipefail
|
||||||
|
{{NIX}} develop --impure --command prettier ./src --write
|
||||||
|
|
||||||
|
gql-codegen:
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euxo pipefail
|
||||||
|
{{NIX}} develop --impure --command bash -c 'yarn install && yarn graphql-codegen'
|
||||||
|
|
||||||
|
|
||||||
|
gql: gql-codegen prettier-gql
|
@ -612,6 +612,7 @@ export type GetShotsQuery = {
|
|||||||
endFrame: number;
|
endFrame: number;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||||
cueObjectFeatures?: {
|
cueObjectFeatures?: {
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
__typename?: "CueObjectFeaturesGQL";
|
||||||
cueObjectDistance?: number | null;
|
cueObjectDistance?: number | null;
|
||||||
@ -1311,6 +1312,9 @@ export const GetShotsDocument = gql`
|
|||||||
videoId
|
videoId
|
||||||
startFrame
|
startFrame
|
||||||
endFrame
|
endFrame
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
}
|
||||||
createdAt @include(if: $includeCreatedAt)
|
createdAt @include(if: $includeCreatedAt)
|
||||||
updatedAt @include(if: $includeUpdatedAt)
|
updatedAt @include(if: $includeUpdatedAt)
|
||||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
||||||
|
@ -17,6 +17,9 @@ query GetShots(
|
|||||||
videoId
|
videoId
|
||||||
startFrame
|
startFrame
|
||||||
endFrame
|
endFrame
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
}
|
||||||
createdAt @include(if: $includeCreatedAt)
|
createdAt @include(if: $includeCreatedAt)
|
||||||
updatedAt @include(if: $includeUpdatedAt)
|
updatedAt @include(if: $includeUpdatedAt)
|
||||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
||||||
|
Loading…
Reference in New Issue
Block a user