cannin/ihop-reach

Add More Complex Example Queries to GraphQL Documentation

Closed this issue · 1 comments

Add more complex queries like those below to documentation for the API

query myQuery($species: String = "4932", $pmc_id: String = "101406") {
  allDocuments(Species: $species, pmc_id: $pmc_id) {
    pmc_id
    extracted_information {
      participant_a {
        entity_text
        identifier
      }
      participant_b {
        entity_text
        identifier
      }
    }
    evidence
  }
  getPubMedDetails(pmcid: $pmc_id) {
    year
    journal_title
  }
}

{
  allDocuments(evidence: "DNA.*[mediated|damage]") {
    evidence
  }
}

Examples have been added in API Docs Explorer here
GraphQL API Build successfully completed