{
"data": {
"predictedImages": [
{
"SImg": "./media/person1_bacteria_1_lgOdnLj_QqrqfBH.jpeg",
"SetImgID": "1",
"alldata": [
{
"SetImgID": "1",
"SValue1": "50.0",
"SClass1": "NORMAL"
}
]
},
{
"SImg": "./media/person1_bacteria_1_lgOdnLj_QqrqfBH_Eoc1So1.jpeg",
"SetImgID": "2",
"alldata": [
{
"SetImgID": "2",
"SValue1": "52.0",
"SClass1": "PNEUMONIA"
}
]
}
]
}
}
This is my graphql query, and it is working.
But not visualize
var template = `
<table bgcolor="#FFFFFF">
<tr>
<th>SImg</th>
<th>SetImgID</th>
</tr>
{{#each response}}
<tr>
<td>{{data.[0].predictedImages.[0].SImg}}</td>
<td>{{data.[0].predictedImages.[0].SetImgID}}</td>
</tr>
{{/each}}
</table>
`
// Set visualizer
pm.visualizer.set(template, {
// Pass the response body parsed as JSON as `data`
response: pm.response.json()
});