Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add WastewaterAtEpiYearWeek table #54

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions graphql/api/relationships.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ export const tables = [
'StandardCurve',
'countries',
'zones',
"TownLevelDataTrend",
"provinceleveldata",
"canadaleveldata",
'WastewaterAtEpiYearWeek',
] as const;

/**
Expand Down
8 changes: 2 additions & 6 deletions graphql/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ const resolvers: Resolvers = {
StandardCurve: withParentResolver('StandardCurve')(({ single }) => ({})),
Countries: withParentResolver('countries')(({ single }) => ({})),
Zones: withParentResolver('zones')(({ single }) => ({})),
TownLevelDataTrend: withParentResolver('TownLevelDataTrend')(({ single }) => ({})),
provinceleveldata: withParentResolver('provinceleveldata')(({ single }) => ({})),
canadaleveldata: withParentResolver('canadaleveldata')(({ single }) => ({})),
WastewaterAtEpiYearWeek: withParentResolver('WastewaterAtEpiYearWeek')(({ single }) => ({})),

Query: {
// addresses: apiResolver('addresses'),
Expand All @@ -149,9 +147,7 @@ const resolvers: Resolvers = {
StandardCurve: apiResolver('StandardCurve'),
countries: apiResolver('countries'),
zones: apiResolver('zones'),
TownLevelDataTrend: apiResolver('TownLevelDataTrend'),
provinceleveldata: apiResolver('provinceleveldata'),
canadaleveldata: apiResolver('canadaleveldata'),
WastewaterAtEpiYearWeek: apiResolver('WastewaterAtEpiYearWeek'),
},
};

Expand Down
36 changes: 22 additions & 14 deletions graphql/schema/InfobaseTrend.graphql
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
input InfobaseTrendFilter{
fractionid: StringFilter
region: StringFilter
input InfobaseTrendFilter {
Location: StringFilter
measureid: StringFilter
LatestTrend: StringFilter
pruid: IntFilter
measure: StringFilter
latestTrends: StringFilter
pruid: StringFilter
t_low: IntFilter
t_high: IntFilter
LatestLevel: StringFilter
Grouping: StringFilter
City: StringFilter
Province: StringFilter
Country: StringFilter
}

type InfobaseTrend {
fractionid: String
region: String
Location: String
measureid: String
LatestTrend: String
pruid: Int
# fraction: PartLUs
# meas: PartLUs
measure: String
latestTrends: String
pruid: String
t_low: Int
t_high: Int
LatestLevel: String
Grouping: String
City: String
Province: String
Country: String

}

extend type Query {
Expand Down
37 changes: 37 additions & 0 deletions graphql/schema/WastewaterAtEpiYearWeek.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
input WastewaterAtEpiYearWeekFilter {
Location: StringFilter
SiteName: StringFilter
City: StringFilter
Province: StringFilter
Country: StringFilter
EpiYear: FloatFilter
EpiWeek: FloatFilter
Week_start: DateTimeFilter
measure: StringFilter
w_avg: FloatFilter
min: FloatFilter
max: FloatFilter
Population_Coverage: FloatFilter
pruid: StringFilter
}

type WastewaterAtEpiYearWeek {
Location: String
SiteName: String
City: String
Province: String
Country: String
EpiYear: Float
EpiWeek: Float
Week_start: DateTime
measure: String
w_avg: Float
min: Float
max: Float
Population_Coverage: Float
pruid: String
}

extend type Query {
WastewaterAtEpiYearWeek(filter: WastewaterAtEpiYearWeekFilter): [WastewaterAtEpiYearWeek]!
}
16 changes: 0 additions & 16 deletions graphql/schema/canadaleveldata.graphql

This file was deleted.

18 changes: 0 additions & 18 deletions graphql/schema/provinceleveldata.graphql

This file was deleted.

27 changes: 0 additions & 27 deletions graphql/schema/townleveldatatrend.graphql

This file was deleted.

Loading