text: import { put, call } from 'redux-saga/effects'
  import gql from 'graphql-tag'
  
  import ScheduleActions from '../Redux/ScheduleRedux'
  
  const getSchedules = {
    query: gql`
    {
    conference(id: "react-finland-2019") {
      schedules {
      day,
         intervals {
           title
           begin
           end
           sessions {
             title
             description
             type
              speakers {
                name
                image {
                  url
                }
              }
           }
         }
       }
    }
  }`
  }
  
  // process STARTUP actions
  export function * updateSchedule (client, action) {
    yield put(ScheduleActions.scheduleRequest())
    try {
      const { data: {conference: { schedules } } } = yield call(client.query, getSchedules)
      yield put(ScheduleActions.scheduleSuccess(schedules))
    } catch (err) {
      yield put(ScheduleActions.scheduleFailure())
    }
  }
  