Created
March 16, 2022 19:16
-
-
Save Tuuleh/d3e04ae6c7bb1e2941268ac7527b905a to your computer and use it in GitHub Desktop.
children by site Ids including inactive kids
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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