- Merge request !73[#3553750] feat: Rework GraphQL proxy to produce response in the same format as the commercetools API → (Merged) created by Unnamed author
The commercetools GraphQL API returns the data in the "data" object, but our GraphQL proxy returns it in the root object.
Because of this, we implemented an "if" condition to handle this on the frontend - modules/commercetools_decoupled/js/libs/commercetoolsApi.js:
if (isDirectRequest) {
// @todo Rework backend GraphQL proxy to return data in the same
// format as commercetools GraphQL.
Object.assign(result.body, result.body.data);
delete result.body.data;
}
We need to fix our GraphQL proxy to produce results in the same format as the direct commercetools API responses and remove this "if" condition.
Active
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.