Skip to content

covidgraph/graphql-api

Repository files navigation

CI status

This is a Neo4j-GraphQL API for the Neo4j graph database used by the CovidGraph project.

Image from covidgraph.org

Demo

GraphQL Playground

The API is currently hosted by Vercel at: https://graphql-api.covidgraph.vercel.app/. For example queries, please see the below integration tests.

Try this query 🚀

query {
  Paper(first: 50) {
    _hash_id
    cord_uid
    journal
    publish_time
    source
    title
    url
  }
}

GraphQL Playground

GraphQL Voyager

GraphQL Voyager is available at: https://graphql-api.covidgraph.vercel.app/voyager GraphQL Voyager

Getting Started

Install root dependencies:

npm install

and install /api dependencies:

cd api
npm install

In the root directory, you can start the API server with:

run run start

To develop the API server and print Cypher translations to your terminal:

cd api
npm run start:dev

Schema

The below links go to corresponding Neo4j-GraphQL type definitions:

Patents

BioBERT (NLP + NER)

BioMedical

Papers

Clinical Trials

Statistical & Geographic

Tests

Integration tests are run using Ava. To run the below tests, start the API server and run:

npm run test

If you're in /api, you can run:

npm run integration

Integration tests

Patents

BioBERT (NLP + NER)

BioMedical

Papers

Clinical Trials

Statistical & Geographic

Releases

No releases published

Packages

No packages published

Languages