3 ms·
Try this: curl 'http://graphql-swapi.parseapp.com' \ -H 'content-type: application/json' \ --data-binary '{"query":"{ allFilms(first: 3) { f
by ludwigvan 11y ago
Try this:
curl 'http://graphql-swapi.parseapp.com' \
-H 'content-type: application/json' \
--data-binary '{"query":"{ allFilms(first: 3) { films { title, director } }}"}'
The query param is just for easy sharing online when you build a query.
- belovedeagle 11y ago> The query param is just for easy sharing online when you build a query. Gee, if only there were a way to encode that data into the URL itself without embedding an almost-JSON document! Someone should invent something like that.
- trowawee 11y agoGet outta here, that's nuts.