sourceField can read dots which is convenient but placing the downloaded URL in a tidy location inside the graphQL tree could be better.
Scenario 1: Read typeName with dots
{
use: '@noxify/gridsome-plugin-remote-image',
options: {
'typeName': 'portfolio.photo.thumbmails.large', // does not work
'sourceField': 'url',
'targetField': 'downloadedUrl',
'targetPath': './src/assets/remoteImages'
}
},
Scenario 2: Write targetField with dots
{
use: '@noxify/gridsome-plugin-remote-image',
options: {
'typeName': 'portfolio',
'sourceField': 'photo.thumbnails.large.url', // works!
'targetField': 'photo.thumbnails.large.downloadedUrl', // does not work
'targetPath': './src/assets/remoteImages'
}
},