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

Graphql Attributes not working. Specifically Limit attribute. #39193

Open
2 tasks done
KumarWayadande opened this issue Dec 23, 2024 · 0 comments
Open
2 tasks done

Graphql Attributes not working. Specifically Limit attribute. #39193

KumarWayadande opened this issue Dec 23, 2024 · 0 comments
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby

Comments

@KumarWayadande
Copy link

Preliminary Checks

Description

I wanna use limit attribute to fetch some limited items or mdx file data. However when limit attribute is applied, it causes all other routes to be down. sometimes limit is working, and sometimes its not. The syntax is same as shown in documentation but when I add extra space after : (semicolon) it stops working. when I perform redo, it still stops. I think there is a minor bug in gatsby. Also, npm packages are not able to be installed. Everytime a package is to be installed, I have to use --force flag which is not good for my project.

Reproduction Link

https://githubbox.com/gatsbyjs/gatsby-starter-minimal

Steps to Reproduce

1.Make changes in graphql query.
2.adjust spacing for limit attribute.
3.Then you'll get an error.
...

Expected Result

Specified number of results

Actual Result

Error related to cache

Environment

System:
    OS: Windows 11 10.0.22631
    CPU: (8) x64 AMD Ryzen 5 3500U with Radeon Vega Mobile
Gfx
  Binaries:
    Node: 20.14.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.4.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
  npmPackages:
    gatsby: ^5.14.0 => 5.14.0
    gatsby-plugin-image: ^3.14.0 => 3.14.0
    gatsby-plugin-manifest: ^5.14.0 => 5.14.0
    gatsby-plugin-portal: ^1.0.7 => 1.0.7
    gatsby-plugin-sharp: ^5.14.0 => 5.14.0
    gatsby-source-filesystem: ^5.14.0 => 5.14.0
    gatsby-transformer-remark: ^6.14.0 => 6.14.0
    gatsby-transformer-sharp: ^5.14.0 => 5.14.0
  npmGlobalPackages:
    gatsby-cli: 5.14.0

Config Flags

No response

@KumarWayadande KumarWayadande added the type: bug An issue or pull request relating to a bug in Gatsby label Dec 23, 2024
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

1 participant