update example to use weather api

This commit is contained in:
Jens Neuse 2022-11-02 18:50:27 +01:00
parent 1887dccdf5
commit f5efd3e7f7

View File

@ -1,9 +1,10 @@
query ($city: String!) { query ($city: String!) {
weather_getCityByName(name: $city config: {units: metric}) { weather_getCityByName(name: $city config: {units: metric}) {
coordinates: coord { # remove the comments to add the coordinates to the query
lat # coordinates: coord {
lon # lat
} # lon
# }
country country
weather { weather {
temperature { temperature {