Compare commits

..

2 Commits

Author SHA1 Message Date
c6aeca7e2b Add workflow to check gql has been executed
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-05-21 14:33:36 -06:00
92c18f8bf7 Add user to shot gql 2024-05-21 14:14:02 -06:00
5 changed files with 39 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
name: Tests
on:
pull_request:
env:
NIXPKGS_ALLOW_UNFREE: 1
jobs:
install:
name: Tests
runs-on: nixos-x86_64-linux
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: graphql-codegen causes no changes
run: ./bin/assert-no-changes-wrapper.sh

View File

@@ -21,7 +21,7 @@
in
with pkgs; {
devShell = mkShell {
buildInputs = [nodejs yarn watchman alejandra nodePackages.prettier];
buildInputs = [nodejs yarn watchman alejandra nodePackages.prettier just];
};
});
}

14
justfile Normal file
View 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

View File

@@ -612,6 +612,7 @@ export type GetShotsQuery = {
endFrame: number;
createdAt?: any | null;
updatedAt?: any | null;
user?: { __typename?: "UserGQL"; id: number } | null;
cueObjectFeatures?: {
__typename?: "CueObjectFeaturesGQL";
cueObjectDistance?: number | null;
@@ -1311,6 +1312,9 @@ export const GetShotsDocument = gql`
videoId
startFrame
endFrame
user {
id
}
createdAt @include(if: $includeCreatedAt)
updatedAt @include(if: $includeUpdatedAt)
cueObjectFeatures @include(if: $includeCueObjectFeatures) {

View File

@@ -17,6 +17,9 @@ query GetShots(
videoId
startFrame
endFrame
user {
id
}
createdAt @include(if: $includeCreatedAt)
updatedAt @include(if: $includeUpdatedAt)
cueObjectFeatures @include(if: $includeCueObjectFeatures) {