GraphQL example: Cannot query field 'id' on type 'Tractability'. (line 16, column 7)

Hello OT community team!
I am using the Playground GraphQL and I noticed you have a no updated ‘link’ below the example code to run a GrapQL sample query.
image

When I click on it, I redirects me to the Playground GraphQL but when you click on “Run” it retrieves this error:

When I copy the script above that link, and paste it, it returns an output with no error.

So please could you update it?
By the way, nice tool and documentation!

1 Like

Hi Cori,

Welcome to OpenTargets community! Yes, indeed the tractability object does not have id field, so the API throws an error. If you remove that field, the query should work. And you are right, the API link is not consistet with the example shown on the documentation. We’ll update that. Thanks for reporting.

Best,
Daniel

1 Like

Hi Cori,

The documentation is now updated, please take a look (you might need to refresh your browser’s cache). In case you find anything else, please don’t hesitate contatcing us.

Best,
Daniel

1 Like