Queries
Read operations. Most data hangs off viewer, the signed-in user; see Types.
Admin dashboard (admins only).
Returns Admin! · Access Admins only
config
Section titled “config”Instance configuration.
Returns AppConfig! · Access Anyone (signed out too)
exercisesById
Section titled “exercisesById”Exercises by id, named in a language: the library for anyone (a shared plan’s page too), and the signed-in user’s own, deleted ones included. Unknown ids are left out.
Returns [Exercise!]! · Access Anyone (signed out too)
| Argument | Type | Description |
|---|---|---|
ids |
[ID!]! |
Up to 500 ids. |
locale |
String |
Language of the names (default: the account’s, else English). |
programs
Section titled “programs”The ready-made programs (Explore).
Returns [Program!]! · Access Anyone (signed out too)
routineTemplates
Section titled “routineTemplates”Single routines to save on their own (Explore’s Routines), optionally only those with a tag.
Returns [RoutineTemplate!]! · Access Anyone (signed out too)
| Argument | Type | Description |
|---|---|---|
tag |
RoutineTag |
Only routines that fit here. |
sharedPlan
Section titled “sharedPlan”Read a plan shared by link. Null when the token is unknown or expired.
Returns SharedPlan · Access Anyone (signed out too)
| Argument | Type | Description |
|---|---|---|
token |
String! |
Share token. |
viewer
Section titled “viewer”The signed-in user, or null when signed out.
Returns Viewer · Access Anyone (signed out too)