Lifts

  type Lift {
    id: ID!
    name: String!
    status: LiftStatus!
    capacity: Int!
    night: Boolean!
    elevationGain: Int!
  }
  
   enum LiftStatus {
    OPEN
    HOLD
    CLOSED
  }

This Lift isn't open now but might open later.

Trails

  type Trail {
    id: ID!
    name: String!
    status: TrailStatus!
    difficulty: Difficulty!
    groomed: Boolean!
    trees: Boolean!
    night: Boolean!
  }

  enum TrailStatus {
    OPEN
    CLOSED
  }

Only two options.

A Trail can't be on Hold.

Lifts & Trails Lab

REQUIREMENTS

  1. Create Federated Lifts
  2. Create Federated Trails
  3. Create the Snowtooth Gateway
  4. Query Lifts and Trails from the Gateway

In this activity, we'll create federated lifts and trails behind an Apollo Gateway.

federation-lab-one

By Moon Highway

federation-lab-one

  • 579