Merge branch 'release-stable' of https://github.com/KieIO/grocery-vercel-commerce into feature/m1-get-product-detail

This commit is contained in:
Tan Le
2021-10-06 20:22:33 +07:00
39 changed files with 950 additions and 308 deletions

View File

@@ -0,0 +1,12 @@
export const getAllCollectionsQuery = /* GraphQL */ `
query collections ($options: CollectionListOptions) {
collections (options: $options){
totalItems,
items {
id
name
slug
}
}
}
`

View File

@@ -0,0 +1,17 @@
export const getAllFacetsQuery = /* GraphQL */ `
query facets ($options: FacetListOptions) {
facets (options: $options){
totalItems,
items {
id
name
code
values {
id
name
code
}
}
}
}
`

View File

@@ -19,3 +19,13 @@ export const getCollectionsQuery = /* GraphQL */ `
}
}
`
export const getCollectionsNameQuery = /* GraphQL */ `
query getCollections {
collections{
items{
name
link:slug
}
}
}
`