This is the demo application to learn the basics of HotChocolate and GraphQL.
Restore the NuGet packages and run the application:
dotnet restore
dotnet run
Download Banana Cake POP Tool.
Go to https://localhost:5000
in Banana Cake POP to access the schema of graphQL.
{
weatherInfos{
city,
minTemp,
maxTemp,
averageTemp,
dewPoint,
humidity,
day,
month,
year
}
}
{
weatherInfoByCity(cityName: "Agra"){
city,
minTemp,
maxTemp,
averageTemp,
dewPoint,
humidity,
day,
month,
year
}
mutation{
createWeatherInfo(dateTime:"2020-05-17T00:00:00Z", minTemp:23, maxTemp:40, city:"Indore"){
iD,
city,
maxTemp,
minTemp,
averageTemp,
date,
day,
month
}
}