Added hour

This commit is contained in:
Kasper Juul Hermansen 2022-08-20 22:41:41 +02:00
parent 1844260aae
commit 9814112b54
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
4 changed files with 9 additions and 2 deletions

View File

@ -8,6 +8,5 @@ vars:
scripts: scripts:
generate_graphql: generate_graphql:
type: shell type: shell
download: download:
type: shell type: shell

6
graphql.config.yml Normal file
View File

@ -0,0 +1,6 @@
schema: http://127.0.0.1:3001/
documents: 'src/lib/graphql/documents/**/*.graphql'
extensions:
endpoints:
example:
url: "http://127.0.0.1:3001/"

View File

@ -3,6 +3,7 @@ query GetUpcoming {
name name
date { date {
day day
hour
} }
} }
} }

View File

@ -41,7 +41,7 @@ export type QueryRoot = {
export type GetUpcomingQueryVariables = Exact<{ [key: string]: never; }>; export type GetUpcomingQueryVariables = Exact<{ [key: string]: never; }>;
export type GetUpcomingQuery = { __typename?: 'QueryRoot', getUpcoming: Array<{ __typename?: 'Event', name: string, date: { __typename?: 'EventDate', day: number } }> }; export type GetUpcomingQuery = { __typename?: 'QueryRoot', getUpcoming: Array<{ __typename?: 'Event', name: string, date: { __typename?: 'EventDate', day: number, hour: number } }> };
export const GetUpcomingDocument = gql` export const GetUpcomingDocument = gql`
@ -50,6 +50,7 @@ export const GetUpcomingDocument = gql`
name name
date { date {
day day
hour
} }
} }
} }