I am implementing Sitecore jss on Sitecore version 9.1.
I was wondering if there is a way to specify the image size (width/height) when querying using GraphQl.
Below is my current query which is returning an image too large for my site.
GraphQl Query
query ($datasource: String){
item (path:$datasource){
field(name:"Image")
{
jss
}
}
}
GraphQl Response
{
"data": {
"item": {
"field": {
"jss": {
"value": {
"src": "http://mydomain/-/media/image.png?h=1560&w=900&hash=FB9B94EFC9562A5265FDFD2123D9E044",
"alt": "",
"width": "900",
"height": "1560",
"style": "margin: 0px 0px"
}
}
}
}
}
}