List Managed Learner Training

Retrieves all the Training (Registrations or Learning Path Registrations) a specific Contact (identified by id) has access to.

NB: The Viewer must be a Coordinator, see the isCoordinator field on the Viewer.

query managedRegistrations {
  coordinatorManagedContacts(filters: { field: id, operation: eq, value: "UGVyc29uOjc1MA==" }) {
    edges {
      node {
        registrations {
          edges {
            node {
              id
              learningPathRegistration {
                id
                learningPath {
                  id
                  name
                }
                results {
                  edges {
                    node {
                      id
                      completed
                      order
                      ... on LearningPathOutcome {
                        id
                        learningPath {
                          id
                          name
                          start
                          end
                        }
                      }
                      ... on CourseOutcome {
                        id
                        order
                        course {
                          id
                          title
                          start
                          end
                          startDate
                          endDate
                          location {
                            id
                            name
                          }
                          learningMode
                        }
                      }
                      ... on ExternalOutcome {
                        external
                      }
                      ... on URLOutcome {
                        url
                      }
                      ... on DocumentOutcome {
                        document {
                          id
                          name
                        }
                      }
                    }
                  }
                }
              }
              lastAccessed
              title
              expiry
              totalPiecesOfContent
              completedPiecesOfContent
              hasPassed
              course {
                id
                title
                learningMode
                location {
                  id
                  name
                }
                start
                end
                imageUrl
                categories {
                  edges {
                    node {
                      id
                      name
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}