Sample R script to query GraphQL API

Hi @Shicheng_Guo,

I am guessing you took this snippet from our documentation. The response is indeed empty because the tractability was not up-to-date with the latest changes - tractability no longer has an id.
This is the correct request:

  query target($ensemblId: String!){
    target(ensemblId: $ensemblId){
      id
      approvedSymbol
      biotype
      geneticConstraint {
        constraintType
        exp
        obs
        score
        oe
        oeLower
        oeUpper
      }
      tractability {
        label
        modality
        value
      }
    }
  }

We have corrected the documentation, and the changes will be shortly available. Thanks for reporting!

2 Likes