icgc-argo / platform-api

https://api.platform.icgc-argo.org/graphql
GNU Affero General Public License v3.0
0 stars 0 forks source link

🐛 Fix clinicalError resolver, both nested in clinicalData and at root #666

Closed Buwujiu closed 1 year ago

Buwujiu commented 1 year ago

Description of changes

GQL Resolver for ClinicalError needed to be defined in two places, once for direct query from root and then again from nested in clinicalData. This was found because the getClinicalError api function was broken in the previous PR, so this was fixed in a way to satisfy both.

In addition, it was found that the clinical API was not parsing the JSON bodies without the Content-Type header set to application/json so that was added to the POST requests.