Skip to content

Project made in order to gain the Apollo Graph Developer Professional Certification and demonstrate strong familiarity with Apollo Federation concepts and apply them to build a federated supergraph or move an existing monolithic graph to federation.

Notifications You must be signed in to change notification settings

greengeko/odyssey-voyage-I

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voyage I: Federation from Day One

Welcome to FlyBy, the companion app of Odyssey Voyage I! You can find the course lessons and instructions in Odyssey, Apollo's learning platform.

You can preview the completed demo app here.

How to use this repo

The course will walk you step by step through how to implement the features you see in the demo app. This codebase is the starting point of your journey!

Backend

You will work in three main folders:

  • gateway
  • subgraph-locations
  • subgraph-reviews

The course will help you set up and run each of these servers.

Frontend

The repo also includes a client folder, which includes the frontend for the FlyBy app. You won't need to edit the code in this directory.

To run the client:

  1. Open a new terminal window, and navigate to the client folder.
  2. Run npm install & npm start. This will install all packages in the client and start the application in localhost:3000.

Queries

  1. Get all locations for the homepage.

    query getAllLocations {
      locations {
        id
        name
        photo
        description
        overallRating
      }
    }
  2. Get the latest reviews for the homepage.

    query LatestReviews {
      latestReviews {
        comment
        rating
        location {
          name
          description
        }
      }
    }
  3. Get details for a specific location.

    query getLocationDetails {
      location(id: "loc-1") {
        id
        name
        description
        photo
        overallRating
        reviews {
          comment
          rating
        }
      }
    }
  4. Submit a review for a location.

    mutation submitReview {
      submitReview(review: { comment: "Wow, such a great planet!", rating: 5, locationId: "1" }) {
        code
        success
        message
        review {
          id
          comment
          rating
        }
      }
    }

Getting Help

For any issues or problems concerning the course content, please refer to the Odyssey topic in our community forums.

About

Project made in order to gain the Apollo Graph Developer Professional Certification and demonstrate strong familiarity with Apollo Federation concepts and apply them to build a federated supergraph or move an existing monolithic graph to federation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published