Once you have set up the API within your environment or GraphiQL (if not please see this article - https://app.intercom.com/a/apps/wnmvofws/knowledge-hub/article/10816410).
The below query will return the surround schools within a given address
query addressschool {
address(address: "#insert Address here") {
cherre_address__address {
tax_assessor_v2__property_address {
tax_assessor_v2_usa_school_boundary_v2__bridge {
usa_school_boundaries_v2__geography_id {
geography_name
usa_schools_v2__institution_id {
institution_address
institution_name
district_name
test_rating
institution_city
enrollment_female
enrollment_male
}
}
}
}
}
}
}
If you would like to get a more macro view of schools, you can search VIA state or zip code with the parent being usa_schools_v2 instead of address or tax_assessor -
query zipschoolsearch {
usa_schools_v2(where:{institution_zip:{_eq:"02116"}}){
institution_name
}
}
query stateschoolsearch {
usa_schools_v2(where:{institution_state:{_eq:"MA"}}){
institution_name
}
}
If you have any further questions please reach out to us at Support@cherre.com