text: const { gql } = require('apollo-server');
  
  const typeDefs = gql`
      type Launch {
        id: ID!
        site: String
        mission: Mission
        rocket: Rocket
        isBooked: Boolean!
      }
  
      type Rocket {
        id: ID!
        name: String
        type: String
      }
  
      type User {
        id: ID!
        email: String!
        trips: [Launch]!
      }
  
      type Mission {
        name: String
        missionPatch(mission: String, size: PatchSize): String
      }
  
      type TripUpdateResponse {
        success: Boolean!
        message: String
        launches: [Launch]
      }
  
      type LaunchConnection {
        cursor: String!
        hasMore: Boolean!
        launches: [Launch]!
      }
  
      enum PatchSize {
        SMALL
        LARGE
      }
  
      type Query {
        launches(
          pageSize: Int
          after: String
        ): LaunchConnection!
        launch(id: ID!): Launch
        me: User
      }
  
      type Mutation {
        bookTrips(launchIds: [ID]!): TripUpdateResponse!
        cancelTrip(launchId: ID!): TripUpdateResponse!
        login(email: String): String #login token
      }
  `;
  
  module.exports = typeDefs;