-
Notifications
You must be signed in to change notification settings - Fork 134
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
Adding collections support #57
Conversation
Someone is attempting to deploy a commit to a Personal Account owned by @Maxvien on Vercel. @Maxvien first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This is the build log I got from Vercel. It seems we have bugs in graphql queries. Could you check it again? Thank you for your contribution. 👍
|
That's a bit weird. Does your vercel build run against some outdated API or something? If you check shopify's APIs, you'll find that the I noticed that whenever I run |
In this project we use https://shopify.dev/api/storefront/2021-07/queries/collections |
Hello, if you check the latest version of the store front api, you’ll also find the new attributes ( |
Hi @MohamedBassem This project is using version https://shopify.dev/api/storefront/2021-07/queries/collections You can also see it in this file: https://github.com/Maxvien/next-shopify-storefront/blob/v2/.env.example |
@Maxvien ok I changed the PR to use version |
LGTM. Thank you @MohamedBassem |
@MohamedBassem You can see the result here: https://next-shopify-storefront.vercel.app/collections I also filtered out empty collections to make the UI better. |
Hello, if you check the latest version of the store front api, you’ll also
find the new attributes (
https://shopify.dev/api/storefront/2022-04/objects/Image#field-image-url).
Is this project by any chance pinned to a particular version?
On Sun, May 15, 2022 at 9:15 AM Vien Dinh ***@***.***> wrote:
Hi @MohamedBassem <https://github.com/MohamedBassem>
In this project we use Storefront API not Admin API. You can check the
documentation here:
https://shopify.dev/api/storefront/2021-07/queries/collection
—
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASOPTJVT6LKBLQA4GCVPULVKCXBTANCNFSM5VMSPA7A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Best Regards,
Mohamed Bassem
|
This PR adds support for collections to the app. It:
Given the similarities between the product list and collection product list queries, I extracted it into a fragment. I tried to adhere to the same code pattern used in this repo as much as possible.
Fixes #56