Skip to content

Commit

Permalink
feat: add access to townleveldatatrend (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
wvxcheung authored Mar 20, 2024
1 parent 7f08fae commit 725ba55
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 22 deletions.
4 changes: 2 additions & 2 deletions graphql/api/relationships.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { TableRelationships } from './types';
* "StandardCurve",
* "countries",
* "zones",
* "healthregleveldata",
* "TownLevelDataTrend",
* "provinceleveldata",
* "canadaleveldata",
*
Expand Down Expand Up @@ -58,7 +58,7 @@ export const tables = [
'StandardCurve',
'countries',
'zones',
"healthregleveldata",
"TownLevelDataTrend",
"provinceleveldata",
"canadaleveldata",
] as const;
Expand Down
4 changes: 2 additions & 2 deletions graphql/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const resolvers: Resolvers = {
StandardCurve: withParentResolver('StandardCurve')(({ single }) => ({})),
Countries: withParentResolver('countries')(({ single }) => ({})),
Zones: withParentResolver('zones')(({ single }) => ({})),
healthregleveldata: withParentResolver('healthregleveldata')(({ single }) => ({})),
TownLevelDataTrend: withParentResolver('TownLevelDataTrend')(({ single }) => ({})),
provinceleveldata: withParentResolver('provinceleveldata')(({ single }) => ({})),
canadaleveldata: withParentResolver('canadaleveldata')(({ single }) => ({})),

Expand Down Expand Up @@ -149,7 +149,7 @@ const resolvers: Resolvers = {
StandardCurve: apiResolver('StandardCurve'),
countries: apiResolver('countries'),
zones: apiResolver('zones'),
healthregleveldata: apiResolver('healthregleveldata'),
TownLevelDataTrend: apiResolver('TownLevelDataTrend'),
provinceleveldata: apiResolver('provinceleveldata'),
canadaleveldata: apiResolver('canadaleveldata'),
},
Expand Down
18 changes: 0 additions & 18 deletions graphql/schema/healthregleveldata.graphql

This file was deleted.

27 changes: 27 additions & 0 deletions graphql/schema/townleveldatatrend.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
input TownLevelDataTrendFilter {
fractionid: StringFilter
region: StringFilter
location: StringFilter
measureid: StringFilter
LatestValue: FloatFilter
LatestTrend: StringFilter
t_low: FloatFilter
t_high: FloatFilter
LatestLevel: StringFilter
}

type TownLevelDataTrend {
fractionid: String
region: String
location: String
measureid: String
LatestValue: Float
LatestTrend: String
t_low: Float
t_high: Float
LatestLevel: String
}

extend type Query {
TownLevelDataTrend(filter: TownLevelDataTrendFilter): [TownLevelDataTrend]!
}

0 comments on commit 725ba55

Please sign in to comment.