Krillian has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
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!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perl and GraphQL example
by Krillian (Acolyte) on Oct 15, 2020 at 09:52 UTC | |
Re: perl and GraphQL example
by perlfan (Vicar) on Oct 14, 2020 at 16:39 UTC | |
by etj (Deacon) on Apr 07, 2023 at 00:30 UTC |
Back to
Seekers of Perl Wisdom