Skip to content

Latest commit

 

History

History
72 lines (62 loc) · 871 Bytes

school.adoc

File metadata and controls

72 lines (62 loc) · 871 Bytes

Schools

Query to get schools by an schoolId

query {
  school(schoolId: Int{
    # School
  }
}

Example to get all data

offeringSearchForCourseOfferingsQuery.gql
query getFullDataOfSchool($schoolId: Int!){
 school(schoolId: $schoolId){
    schoolId
    schoolCompanyId
    schoolCompany{
      name
      phone
      address
    }

    photo{
      url
    }

    email
    website
    address
    instituteNumber
    googlePlaceId
    country{
      code
      continent
      nameTranslation
    }

    includeAutoHolidays
    schoolBannerFile{
      url
    }

    schoolAmenities{
      amenityType{
        codeName
      }
    }

    schoolHighlights{
      highlight
      language{
        code
      }
    }
  }
}
Variables
{
  "schoolId": 1
}