User Assessments

Use the userAssessments query to return all assessments assigned to the user.

Available Arguments

Argument

Type

Description

after

String

before

String

first

Int

Retrieves the first results from the list.

last

Int

filters

UserAssessmentsFilterInput

filters.description

String

Filters by Assessment description.

filters.status

AssessmentStatus

enum AssessmentStatus {DONE, IN_PROGRESS, NEEDS_UPDATE, TODO}

filters.title

String

Filters by Assessment title.

Available Fields

Field

Type

Description

createdAt

DateTime!

Assessment creation date YYYY-MM-DDT hh:mm:ssZ

description

String

Description of the assessment.

finalQuestion

AssessmentQuestion

Assessment final question.

hasScore

Boolean

True if the assessment has a score system in set, otherwise False.

icon

String

Url of the assessment Icon.

id

ID!

Id of the assessment.

initialQuestion

AssessmentQuestion

Assessment initial question.

interval

Int

Assessment intervals defined in days.

isDraft

Boolean!

True if the assessment is Draft, otherwise False.

isPublic

Boolean!

True if the assessment is Public, otherise False.

order

Int!

Defines assessment order.

progressBar

Boolean!

If set to True the assessment will show a progress bar in top of the screen (Whitelabel), otherwise False.

questions

AssessmentQuestion

Assessment Questions.

questions.answers

AssessmentAnswer

Assessment Answer.

score

Float

Displays total score. (Sums all the answers with a score)

status

AssessmentStatus

enum AssessmentStatus {DONE, IN_PROGRESS, NEEDS_UPDATE, TODO}

title

String!

Title of the assessment.

updatedAt

DateTime!

Assessment last update date YYYY-MM-DDT hh:mm:ssZ

weight

Int

Whitelabel feature.

Example with filter: "status"

query {
  userAssessments(filters:{status: DONE  } ){
    edges{
      node{
        id
        title
        description
        status
}
    }
  }
}

Example with filter: "title" + questions and answers

query {
  userAssessments(filters:{title:"Dental Health"}){
    edges{
      node{
        createdAt
        description
        finalQuestion{
          text
          id
        }
        hasScore
        icon
        id
        initialQuestion{
          text
          id
        }
        interval
        isDraft
        isPublic
        order
        progressBar
        questions{
          edges{
            node{
              text
              helpText
              answers{
                text
                nextQuestion{
                  text
                  id
                }
              }
              information
              canSkip
              createdAt
            }
          }
        }
        score
        status
        title
        updatedAt
        weight
      }
    }
  }
}

Last updated