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

fix(gatsby-source-shopify): fix query pagination #11752

Merged

Conversation

pieh
Copy link
Contributor

@pieh pieh commented Feb 14, 2019

Main fix here is that get was using false argument (for unknown reason) in place for data object, so the condition was never true.

Just in case - issue that this PR is fixing can be reproduced by using https://github.com/gatsbyjs/store.gatsbyjs.org and monkey-patching

to default to for example 5.

250 default limit is shopify's maximum (using more would cause query to error out)

fixes #11724

Copy link
Contributor

@DSchau DSchau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Nice catch on the get issue!

packages/gatsby-source-shopify/src/lib.js Outdated Show resolved Hide resolved
@sidharthachatterjee
Copy link
Contributor

Verified locally, thank you @pieh 👍

@sidharthachatterjee sidharthachatterjee merged commit a82682c into gatsbyjs:master Feb 18, 2019
@m-allanson m-allanson deleted the fix/shopify-query-pagination branch May 17, 2019 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[gatsby-source-shopify] Products limited to 250
3 participants