Skip to content
Last updated

Getting a Vision Test

To get the details of a vision test, use the visionTestJob query. Pass the jobId returned from the startVisionTest mutation as an input.

Click here to see the visionTestJob GraphQL reference

Getting a contact lens vision test details using the visionTestJob query

Query:

query VisionTestJob($jobId: String!) {
  visionTestJob(jobId: $jobId) {
    jobId
    reason
    status
    contacts {
      prescriptions {
        issueDate
        expirationDate
        products {
          right {
            productId
            manufacturer
            brand
            schedule
            type
            diameter
            baseCurve
            sphere
            axis
            cylinder
            addition
            dominance
            color
            packageSize
            quantity
          }
          left {
            productId
            manufacturer
            brand
            schedule
            type
            diameter
            baseCurve
            sphere
            axis
            cylinder
            addition
            dominance
            color
            packageSize
            quantity
          }
        }
      }
    }
  }
}

Variables:

{
  "jobId": "<jobId from startVisionTest>"
}

Getting a glasses vision test details using the visionTestJob query

Query:

query VisionTestJob($jobId: String!) {
  visionTestJob(jobId: $jobId) {
    jobId
    reason
    status
    glasses {
      prescriptions {
        issueDate
        expirationDate
        corrections {
          right {
            sphere
            cylinder
            axis
            addition
          }
          left {
            sphere
            cylinder
            axis
            addition
          }
        }
      }
    }
  }
}

Variables:

{
  "jobId": "<jobId from startVisionTest>"
}