You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
594 B
21 lines
594 B
"A date string with format `Y-m-d`, e.g. `2011-05-23`."
|
|
scalar Date @scalar(class: "Nuwave\\Lighthouse\\Schema\\Types\\Scalars\\Date")
|
|
|
|
"A datetime string with format `Y-m-d H:i:s`, e.g. `2018-05-23 13:43:32`."
|
|
scalar DateTime @scalar(class: "Nuwave\\Lighthouse\\Schema\\Types\\Scalars\\DateTime")
|
|
|
|
type Query {
|
|
all_data: [CovidData!]!
|
|
data(id: ID @eq): CovidData @find
|
|
searchData(beginDate: Date!, endDate: Date) : [CovidData!]!
|
|
}
|
|
|
|
type CovidData {
|
|
id: ID!
|
|
infected: Int
|
|
deceased: Int
|
|
recovered: Int
|
|
quarantined: Int
|
|
tested: Int
|
|
created_at: DateTime!
|
|
}
|
|
|