|
|
|
|
|
by scjody
2645 days ago
|
|
So instead of running curl 'https://api.sunrise-sunset.org/json?lat=36.7201600&lng=-4.4203400&date=today'
I can deploy a bunch of code and then run curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ hello, sun(lat: 36.7201600, long: -4.4203400, date: \"today\") { sunrise, sunset } }" }' <script-url>
Can someone explain why this is useful? |
|