Sample Queries - megabit-labs/pathways GitHub Wiki

After seeding the database, you can use the following queries.

To query a pathway, use this query:

query {
  Pathway(id: "<PATHWAY_ID") {
    id
    name
    steps {
      id
      name
    }
  }
}

To query an individual step:

query {
  Step {
    id
    name
    time
    content {
      content
    }
    isPathway
    pathway {
      steps {
        name
        id
      }
    }
  }
}

To search for a pathway:

query {
  SearchPathways(searchQuery: "React") {
    id
    name
  }
}

The schema is self-documented on the Playground. You can play around a bit to figure out the exact query you need.