This repository is a GraphQL demo of using the DGS framework together with Apollo Federation Server.
Documentation for the DGS framework can be found here.
The repository contains three separate projects:
shows-dgs: A Kotlin GraphQL service providing the federatedShowtypereviews-dgs: A Java GraphQL service that extends theShowtype withreviewsapollo-gateway: An instance of Apollo Server acting as the Federated Gateway
The shows-dgs and reviews-dgs projects are Gradle projects.
The apollo-gateway is a Node project.
We recommend to import the three individual projects in Intellij.
Running the demo
- Start
show-dgsby running the Spring Boot app from the IDE or./gradlew bootRun - Start
reviews-dgsby running the Spring Boot app from the IDE or./gradlew bootRun - Run
npm installin theapollo-gatewayproject - Run
node index.jsin theapollo-gatewayproject - Open http://localhost:4000 for the query editor
The following is a federated query that should work.
{
shows {
title
reviews {
starRating
}
}
}
Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
