GraphQL-Client
view release on metacpan or search on metacpan
To hack on the code, clone the repo instead:
git clone https://github.com/chazmcgarvey/graphql-client.git
cd graphql-client
make bootstrap # installs dependencies; requires cpanm
OPTIONS
--url URL
The URL of the GraphQL server endpoint.
If no --url option is given, the first argument is assumed to be the
URL.
This option is required.
Alias: -u
--query STR
bin/graphql view on Meta::CPAN
To hack on the code, clone the repo instead:
git clone https://github.com/chazmcgarvey/graphql-client.git
cd graphql-client
make bootstrap # installs dependencies; requires cpanm
=head1 OPTIONS
=head2 C<--url URL>
The URL of the GraphQL server endpoint.
If no C<--url> option is given, the first argument is assumed to be the URL.
This option is required.
Alias: C<-u>
=head2 C<--query STR>
The query or mutation to execute.
lib/GraphQL/Client.pm view on Meta::CPAN
This module is the programmatic interface. There is also a L<"CLI program"|graphql>.
GraphQL servers are usually served over HTTP. The provided transport, L<GraphQL::Client::http>, lets
you plug in your own user agent, so this client works naturally with L<HTTP::Tiny>,
L<Mojo::UserAgent>, and more. You can also use L<HTTP::AnyUA> middleware.
=head1 ATTRIBUTES
=head2 url
The URL of a GraphQL endpoint, e.g. C<"http://myapiserver/graphql">.
=head2 unpack
Whether or not to "unpack" the response, which enables a different style for error-handling.
Default is 0.
See L</ERROR HANDLING>.
=head2 transport_class
lib/GraphQL/Client/http.pm view on Meta::CPAN
=back
See L<HTTP::AnyUA/"SUPPORTED USER AGENTS">.
=head2 any_ua
The L<HTTP::AnyUA> instance. Can be used to apply middleware if desired.
=head2 url
The http URL of a GraphQL endpoint, e.g. C<"http://myapiserver/graphql">.
=head2 method
The HTTP method to use when querying the GraphQL server. Can be one of:
=over 4
=item *
C<GET>
( run in 0.358 second using v1.01-cache-2.11-cpan-2b1a40005be )