gatsby icon indicating copy to clipboard operation
gatsby copied to clipboard

Media Image is null.

Open js-id5-24 opened this issue 1 year ago • 2 comments

Preliminary Checks

  • [X] This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
  • [X] This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions

Description

  1. We have a media image field in drupal site.
  2. I need to pull the media image field from home page content and show it.
  3. When I run the graph ql, media image field returns null.
  • create-schema-resolve.js

image

  • Rest API url https://**/jsonapi/node/homepage/d8e84958-928d-499d-b748-f80feb5c0eec image

It returns object. but once I run the graphql, I got the null.

Steps to Reproduce

  1. gatsby clean
  2. gatsby start

Expected Result

Media Image field should have image information.

Actual Result

Null.

Environment

System:
    OS: Linux 4.4 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (4) x64 Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
    Yarn: 3.2.0 - ~/.nvm/versions/node/v18.16.0/bin/yarn
    npm: 9.6.5 - ~/.nvm/versions/node/v18.16.0/bin/npm
  Languages:
    Python: 2.7.18 - /usr/bin/python
  npmGlobalPackages:
    gatsby-cli: 5.12.4

Config Flags

No response

js-id5-24 avatar Jan 09 '24 17:01 js-id5-24

can i work on this?

sreeragdas avatar Feb 16 '24 05:02 sreeragdas

Can you please assign it to me?

143divya avatar Jun 21 '24 11:06 143divya