Skip to content

Instantly share code, notes, and snippets.

@Tuuleh
Created March 16, 2022 19:16
Show Gist options
  • Save Tuuleh/d3e04ae6c7bb1e2941268ac7527b905a to your computer and use it in GitHub Desktop.
Save Tuuleh/d3e04ae6c7bb1e2941268ac7527b905a to your computer and use it in GitHub Desktop.
children by site Ids including inactive kids
query children ($siteIds: [SiteId!]!, $timeRange: NonEmptyLocalDateRangeInput) {
children {
listBySiteIds (siteIds: $siteIds, timeRange: $timeRange) {
result {
id
name {
firstName
lastName
}
gender
birthday
contacts {
id
}
sitesRelation {
firstDay
lastDay
site {
siteId
}
}
}
next
}
}
}
Try with the following args to get kids, both active and inactive, who were active since November 1st 1988:
{
"siteIds": [
"bb0ea0c8-ad4a-4c53-b9ff-c03401b7485b"
],
"timeRange": {
"from": "1988-11-01"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment