Fetch draft product #32092
Replies: 4 comments
-
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? |
Beta Was this translation helpful? Give feedback.
-
In production draft products should not be mixed to active products. |
Beta Was this translation helpful? Give feedback.
-
It would be great to be able to toggle something like |
Beta Was this translation helpful? Give feedback.
-
I also require this functionality. I have recently launched a Shopify store with a Gatsby frontend and now need to continue developing new features. I want to create a new draft product type that is not shown on the live store, but which I can test with on my local build. As @sahandnayebaziz mentioned, a parameter would be great, ideally one that I can set in gatsby-config.js using env vars. |
Beta Was this translation helpful? Give feedback.
-
Actually plugin only fetch active product.
It can be very useful to be able to fetch also draft products if wanted.
Beta Was this translation helpful? Give feedback.
All reactions