fragment RouteStopFragment on RouteStop {
  time {
    utc
    local
  }
}

fragment Sector on Sector {
  duration
  stopoverDuration
  segments {
    departure {
      ...RouteStopFragment
    }
    arrival {
      ...RouteStopFragment
    }
  }
  departure {
    ...RouteStopFragment
  }
  arrival {
    ...RouteStopFragment
  }
}

{
  searchReturnItineraries(input: {
  order: ASC,
  sort: QUALITY,
  limit: 10,
  passengers: {
    adults: 1,
    children: 0,
    infants: 0,
  },
  itinerary: {
    origin: {
      ids: ["TG9jYXRpb246cHJhZ3VlX2N6"],
    },
    destination: {
      ids: ["TG9jYXRpb246bG9uZG9uX2di"],
    },
    outboundDate: {
      start: "2019-05-01",
      end: "2019-05-03",
    },
    inboundDate: {
      start: "2019-05-25",
      end: "2019-05-28"
    }
  },
}, first: 1) {
    edges {
      node {
        id
        holdBagOptions {
          quantity,
          dimensions,
          weight,
          price {
            currency
            amount
          },
        }
          ... on ItineraryReturn {
          inbound {
            ...Sector
          }
          outbound {
            ...Sector
          }
        }
      }
    }
  }
}
