Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Fetch draft product #32070

Closed
vlefort opened this issue Jun 10, 2021 · 2 comments
Closed

Fetch draft product #32070

vlefort opened this issue Jun 10, 2021 · 2 comments
Labels
topic: source-shopify Related to the gatsby-source-shopify plugin

Comments

@vlefort
Copy link

vlefort commented Jun 10, 2021

Actually plugin only fetch active product.

It can be very useful to be able to fetch also draft products if wanted.

@sslotsky
Copy link
Contributor

sslotsky commented Jun 10, 2021

Thanks for the suggestion! We were already looking at pulling in draft content as part of supporting CMS Preview, but we can consider supporting opt-in draft products for regular builds as well. I'd love to know more about your use case first if you'd be willing to elaborate. For example, would you expect to see them mixed in with all the other products, or would you want to see them as a separate node type? Any other details you think would be pertinent?

@vlefort
Copy link
Author

vlefort commented Jun 18, 2021

In production draft products should not be mixed to active products.
In developement or preview build see active and draft products is very interesting. If needed to have a specific page for draft products (for marketing or product creator) can also be interesting and it can be done easily by filtering them in GraphQL query (or even show a draft banner in product page for exemple).

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 23, 2021
@DanielSLew DanielSLew transferred this issue from gatsbyjs/gatsby-source-shopify Jun 23, 2021
@LekoArts LekoArts added topic: source-shopify Related to the gatsby-source-shopify plugin and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jun 23, 2021
@gatsbyjs gatsbyjs locked and limited conversation to collaborators Jun 23, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
topic: source-shopify Related to the gatsby-source-shopify plugin
Projects
None yet
Development

No branches or pull requests

3 participants