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
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>"
}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>"
}