Skip to content
This repository was archived by the owner on Sep 8, 2023. It is now read-only.

typeName & targetField can't read dots #27

@wraybowling

Description

@wraybowling

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'
      }
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions