Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

childImageSharp for multiple media #115

Closed
schmanat opened this issue Mar 30, 2020 · 4 comments
Closed

childImageSharp for multiple media #115

schmanat opened this issue Mar 30, 2020 · 4 comments

Comments

@schmanat
Copy link

Hi everyone.

I set up a Gatsby Site with Companies, this content-type use the media type. For the frontend I would like to you gatsby-image but there seems no way to use it. Trying to query (graphql) the childImageSharp I get the following error:

error  Cannot query field "childImageSharp" on type "StrapieCompaniesImages".

I found a similar issue (#63) but is there no way to query this media type? After changing it to "use a single image" everything works fine.

How can a achieve it to use Media (multiple) files.

Thanks for your response.

@denisgoryaynov
Copy link
Contributor

denisgoryaynov commented Apr 2, 2020

Hi, if I understand your issue this should have been fixed already but it seems that my pull request was overwritten by another one. I will open a new pull request to restore the files, meanwhile I already had an issue open with the steps to fix it using the files form my fork #45

Edit: I opened a pull request #118

@rasimack
Copy link

Hi there,
I still have this problem. I dont find the childImageSharp to query. Someone found a solution?

Screen Shot 2020-05-28 at 8 10 19 pm

@AbdallahAbis
Copy link

Any solution guys? only the thumbnail is a file, and it's the only one that has childImageSharp

graphql

@denisgoryaynov
Copy link
Contributor

Hi, I opened a pr to fix the issue: #118, you can check the fork on my github page

@soupette soupette mentioned this issue Feb 11, 2022
11 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants