+-graphql-java-weather---------+ HTTP
| +----------------------------> metaweather.com/api
| graphiql-spring-boot-starter |
| | GQL SQL
| graphql-java-tools +--------> Hasura +----------> Postgres
| | | | films DB
| | remote schema | |
| +<- - - - - - - + |
+------------------------------+ |
|
WebSockets |
<------------------------------------------------+
Tool for writing, validating, and testing GraphQL queries:
http://localhost:8081/graphiql
Example query:
{
searchPlace(query:"NEW YORK") {
title
films {
title
releaseYear
}
forecast {
consolidatedWeather {
applicableDate
theTemp
}
}
}
}