graphql-for-data-scientists

Stars
7

Introduction To GraphQL For Data Scientists

Part 1: Introduction To GraphQL

Try these queries in GraphQL Playground movies.neo4j-graphql.com

{
  movies(options: { limit: 10, sort: { title: ASC } }) {
    title
  }
}

Who acted in the movie "Jurassic Park"?

{
  movies(where: { title: "Jurassic Park" }) {
    title
    actors {
      name
    }
  }
}

What are the genres of "Jurassic Park"?

{
  movies(where: { title: "Jurassic Park" }) {
    title
    genres {
      name
    }
  }
}

Can you write GraphQL queries to answer the following questions?

  • What other movies are in those genres?
  • What movie has the highest imdbRating?

See this readme for more exercises and solutions.

Part 2: GraphQL As A Data Source

  • Querying GraphQL in Python using the GQL package - Meetup API
  • Working with GraphQL in a DataFrame
  • Graph Data Science with Neo4j

See notebooks/meetup.ipynb or run in Google Colab

Part 3: Exposing Data Science With GraphQL

  • Using the Neo4j GraphQL Library to expose the results of data science workflows (operationalize data science activities)

See graphql/ or Open in CodeSandbox

Part 4: GraphQL Data Visualization

  • Neo4j Bloom
  • Using react-graph-viz-engine with GraphQL