Retrieving >25 associated drugs

Hi all!

When querying ‘knownDrugs’ associated to a target, I am able to find at most 25 drugs. Would it be possible to retrieve more associated drugs without using Google Big Query?
I tried suggestions like (page: { size: x, index:y }) mentioned here and here, but they did not work for me.

Many thanks in advance,
Myrthe

query search{
  target(ensemblId:"ENSG00000047936"){
      knownDrugs{
      rows{
        drugId
        drug{
          name
        }
      }
      }
  }
}

Have you tried this?

query q{
  target(ensemblId: "ENSG00000047936"){
    id
    knownDrugs(size: 2){
      count
      rows{
        drug{
          name
        }
      }
    }
  }
}
1 Like

Dear Ochoa,

No, I had not tried that. It works wonderfully, thank you so much!

2 Likes