Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

childLocalImage vs. childrenLocalImage #5814

Closed
nicib83 opened this issue Jun 8, 2018 · 1 comment
Closed

childLocalImage vs. childrenLocalImage #5814

nicib83 opened this issue Jun 8, 2018 · 1 comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@nicib83
Copy link

nicib83 commented Jun 8, 2018

I am following #2902 to download remote assets and link them as child nodes; specifically in the context of gatsby-source-airtable by fetching an image gallery from a column.

the number of images per gallery column can be bigger than 1 but also just 1 for any column returned.

in this case I can't fetch the images with

allAirtable {
      edges {
        node {
          childrenLocalImage {
            localImageFile {
                ...
            }
          }
        }
      }
    }

but have to use:

allAirtable {
      edges {
        node {
          childLocalImage {
            localImageFile {
                ...
            }
          }
        }
      }
    }

I have trouble understanding why the query syntax changes with the number of child nodes mapped via createParentChildLink and

  const localImageNode = {
    id: `${parent} >>> LocalImage ${id}`,
    url,
    // expires: screenshotResponse.data.expires,
    parent,
    children: [],
    internal: {
      type: `LocalImage`,
    },
    localImageFile___NODE: fileNode.id,
  }
@pieh pieh added the type: question or discussion Issue discussing or asking a question about Gatsby label Jun 8, 2018
@KyleAMathews
Copy link
Contributor

Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

3 participants