graphql-client: Raw Response Option

Created on 22 April 2024, 7 months ago
Updated 6 May 2024, 7 months ago

Problem/Motivation

In some cases, it may be required to get back the raw response from Drupal instead of only the json so that headers or other parts of the request can be used if needed.

Proposed resolution

An option to the get method of the GraphqlClient to return the raw response.

Should be similar to json-api-client implementation. See https://www.drupal.org/project/api_client/issues/3391668 β†’

Remaining tasks

* Implement changes.
* Add test coverage.
* Update documentation.

API changes

the query method options in the GraphqlClient adds a rawResponse option that is a boolean which defaults to false

✨ Feature request
Status

Active

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States brianperry

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024