The following GraphQL query lists all the sites for an organization:
{
sites {
list(organizationId: "1ce18a75-c7a9-454d-a2f9-a1f6516b0a2c") {
result {
siteId
title
address {
street
city
zip
}
contactPerson {
fullName
}
}
next
}
}
}
You can list children for a list of sites using the following query:
{
children {
listBySiteIds(siteIds: ["c8cb4c3f-a5ee-4161-af2a-c5b48794163d"]) {
result {
id
name {
fullName
}
sitesRelation {
site {
siteId
}
}
gender
birthday
contacts {
name {
fullName
}
email
address {
street
city
zip
}
}
}
next
}
}
}