0

I started learning cURL and graphQL.

Book tells me I need use this command line in terminal

$ curl -H 'Content-Type:application/graphql' -XPOST 
https://www.graphqlhub.com/g\
raphql?pretty=true -d '{ hn { topStories(limit: 2) { title url } } }'
{
  "data": {
    "hn": {
      "topStories": [
        {
          "title": "Bank of Japan Is an Estimated Top 10 Holder in 90% of the Ni\
kkei 225",
          "url": "http://www.bloomberg.com/news/articles/2016-04-24/the-tokyo-wh\
ale-is-quietly-buying-up-huge-stakes-in-japan-inc"
        },
        {
          "title": "Dropbox as a Git Server",
          "url": "http://www.anishathalye.com/2016/04/25/dropbox-as-a-true-git-s\
erver/"
        }
      ]
    }
  }
}

I am using windows and this cmd commands doesn't work in windows 7. I need somehow convert that code into windows version. Could anybody help me so I could run in my laptop?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.