mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 19:51:23 +00:00
Merge branch 'release-stable' of https://github.com/KieIO/grocery-vercel-commerce into feature/m1-get-product-detail
This commit is contained in:
12
framework/vendure/utils/queries/get-all-collections-query.ts
Normal file
12
framework/vendure/utils/queries/get-all-collections-query.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export const getAllCollectionsQuery = /* GraphQL */ `
|
||||
query collections ($options: CollectionListOptions) {
|
||||
collections (options: $options){
|
||||
totalItems,
|
||||
items {
|
||||
id
|
||||
name
|
||||
slug
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
17
framework/vendure/utils/queries/get-all-facets-query.ts
Normal file
17
framework/vendure/utils/queries/get-all-facets-query.ts
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
@@ -19,3 +19,13 @@ export const getCollectionsQuery = /* GraphQL */ `
|
||||
}
|
||||
}
|
||||
`
|
||||
export const getCollectionsNameQuery = /* GraphQL */ `
|
||||
query getCollections {
|
||||
collections{
|
||||
items{
|
||||
name
|
||||
link:slug
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
Reference in New Issue
Block a user