+ };
+ my $operation_name = 'GetHuman';
+ my $transport_options = {
+ headers => {
+ authorization => 'Bearer s3cr3t',
+ },
+ };
+ my $response = $graphql->execute($query, $variables, $operation_name, $transport_options);
+
+ # Example: Asynchronous with Mojo::UserAgent (promisify requires Future::Mojo)
+
+ my $ua = Mojo::UserAgent->new;
+ my $graphql = GraphQL::Client->new(ua => $ua, url => 'http://localhost:4000/graphql');
+
+ my $future = $graphql->execute('{hello}');
+
+ $future->promisify->then(sub {
+ my $response = shift;
+ ...