-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
95 lines (86 loc) · 1.24 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
type Query{
getCityParameters(
city: String!
stationId: Int
startDate: String
endDate: String
interval: Int
): [Station!]!
getRealTimeParameters(
stationId: Int!
): Station
getCollectedCities: [City!]!
getRealTimeWeather(
lat: Float!
long: Float!
city: String!
): Weather!
test: String!
getIndexForCity(
city: String!
day: Int!
): Float!
}
type Mutation{
refreshStations: String!
}
type City{
country: String!
name: String!
state: String!
location: PureLocation!
stationsInCity: [Station!]!
createdAt: String!
}
type Weather{
main: String
description: String
temp: Float
feelTemp: Float
humidity: Int
clouds: Int
windSpeed: Float
gustSpeed: Float
windDeg: Int
pressure: Float
}
type Station{
city: String!
stationId: Int
kind: DATA_SOURCE_TYPE!
createdAt: String!
updatedAt: String!
parameters: [Parameters!]!
}
type PureLocation{
lat: Float!
long: Float!
}
enum DATA_SOURCE_TYPE{
OPEN_WEATHER
MANUAL
AUTOMATIC
}
enum STATION_KIND{
GOV
OPEN_WEATHER
}
type Parameters{
pm1: Float
pm2p5: Float
pm10: Float
pm10Time: String
pm25: Float
pm25Time: String
no2: Float
no2Time: String
so2: Float
so2Time: String
o3: Float
o3Time: String
time: String!
}
schema{
query: Query
mutation: Mutation
}