I am trying to figure out how to post a request from perl to GraphQL API. I couldn't find any tutorials online. As far as I understand I can use this cpan module https://metacpan.org/pod/GraphQL
But I am still confused as to how to do it exactly. If someone could respond with an example, would be very much appreciated.Here is what I am trying to do: Send a post request to the API with a authentication header and body with query and graphql variables. I should then get a response in JSON, which I will process (this part I understand how to do).
Thank you very much in advance!
In reply to perl and GraphQL example by Krillian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |