{"size": 1367, "ext": "js", "max_stars_repo_path": "src/data/campus/schema.js", "max_stars_repo_name": "camrun91/apollos-api", "max_stars_repo_stars_event_min_datetime": "2020-07-07T17:28:28.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-31T22:42:37.000Z", "max_issues_repo_path": "src/data/campus/schema.js", "max_issues_repo_name": "camrun91/apollos-api", "max_issues_repo_issues_event_min_datetime": "2019-07-29T13:18:51.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-21T15:50:54.000Z", "max_forks_repo_path": "src/data/campus/schema.js", "max_forks_repo_name": "camrun91/apollos-api", "max_forks_repo_forks_event_min_datetime": "2021-01-18T18:56:03.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-18T18:56:03.000Z"}
{"max_stars_count": 2, "max_issues_count": 136, "max_forks_count": 1, "avg_line_length": 22.4098360656, "max_line_length": 66, "alphanum_fraction": 0.5932699342}
import { gql } from 'apollo-server'

export default gql`
    type ServiceTime {
        day: String
        time: String
    }

    type CampusFeature {
        title: String
        summary: String
        htmlContent: String
        options: [String]
        icon: String
    }

    type CampusPastor { 
        firstName: String
        lastName: String
        email: String
        photo: ImageMediaSource
    }

    type Campus implements Node {
        id: ID!
        name: String
        street1: String
        street2: String
        city: String
        state: String
        postalCode: String
        latitude: Float
        longitude: Float
        image: ImageMediaSource
        featuredImage: ImageMediaSource
        distanceFromLocation(location: CampusLocationInput): Float
        serviceTimes: [ServiceTime]
        campusFeatures: [CampusFeature]
        pastor: CampusPastor
    }

    extend type Query {
        campuses(location: CampusLocationInput): [Campus]
        campus(name: String!): Campus
        campusFAQ(name: String): [ContentItem]
        campusContentItems(name: String!): [ContentItem]
    }

    input CampusLocationInput {
        latitude: Float
        longitude: Float
    }

    extend type Person {
        campus: Campus
    }

    extend type Mutation {
        updateUserCampus(campusId: String!): Person
    }
`