cannin / ihop-reach

A web application to access biological data extracted from biomedical literature.
https://reach.nrnb-docker.ucsd.edu
GNU Lesser General Public License v3.0
4 stars 4 forks source link

Add More Complex Example Queries to GraphQL Documentation #60

Closed cannin closed 4 years ago

cannin commented 5 years ago

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
  }
}
RohitChattopadhyay commented 5 years ago

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