{"size": 1011, "ext": "js", "max_stars_repo_path": "src/graphql/types/LightningTalksSlotType.js", "max_stars_repo_name": "exponent/react-conf-2016-server", "max_stars_repo_stars_event_min_datetime": "2016-02-16T08:24:48.000Z", "max_stars_repo_stars_event_max_datetime": "2016-10-13T21:46:48.000Z", "max_issues_repo_path": "src/graphql/types/LightningTalksSlotType.js", "max_issues_repo_name": "exponentjs/react-conf-2016-server", "max_issues_repo_issues_event_min_datetime": "2016-04-30T14:09:39.000Z", "max_issues_repo_issues_event_max_datetime": "2016-04-30T14:09:39.000Z", "max_forks_repo_path": "src/graphql/types/LightningTalksSlotType.js", "max_forks_repo_name": "exponent/react-conf-2016-server", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 27.3243243243, "max_line_length": 101, "alphanum_fraction": 0.7586547972}
/**
 * @providesModule LightningTalksSlotType
 * @flow
 */

import {
	GraphQLList,
  GraphQLObjectType,
} from 'graphql';

import { globalIdField } from 'graphql-relay';

import LightningTalkType from 'LightningTalkType';
import { nodeInterface } from 'RelayNode';
import RelayRegistry from 'RelayRegistry';
import ScheduleSlotInterface, { fields as ScheduleSlotInterfaceFields } from 'ScheduleSlotInterface';
import * as ScheduleResolvers from 'ScheduleResolvers';

const LightningTalksSlotType = new GraphQLObjectType({
  name: 'LightningTalksSlot',

  isTypeOf: s => s.type === 'lightning-talks',

  fields: () => ({
    id: globalIdField('LightningTalksSlot'),
    talks: {
      type: new GraphQLList(LightningTalkType),
    },
    ...ScheduleSlotInterfaceFields,
  }),

  interfaces: () => [ScheduleSlotInterface, nodeInterface],
});

RelayRegistry.registerResolverForType(LightningTalksSlotType, ScheduleResolvers.slotNodeResolver);
export default RelayRegistry.registerNodeType(LightningTalksSlotType);
