craftcms / craftcms/cms

[4.x]: GraphQl not fetching the data properly

Open
#14,889 2 comments 0 reactions 1 assignee View on GitHub

@i-just is already working on this.

Since Apr 29, 2024.

bug craft4
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

What happened?
Description
GraphQL
  1. I am using craftcms pro currently, during the testing of the Graphql API I am trying to fetch the data but i am getting inconsistent results. If you see , I can get the articleFeaturedImage's URL in the CMS's explorer, but with the same query when i test it on the postman i don't get the URL for the articleFeaturedImage. May I know what am i doing wrong here .

FYI , I already setuped the GraphQL token for that schema .

Expected behavior
Screenshot 2024-04-29 at 4 04 42 PM
Actual behavior
Screenshot 2024-04-29 at 4 16 41 PM

Please help me if anyone have suggestions on this issue . I can provide additional information to clarify more on this .

Craft CMS version

4.8.9

PHP version

8.3.6

Operating system and version

linux 3.10

Database type and version

MariaDB 10.5.24

Image driver and version

No response

Installed plugins and versions

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.