
* remove classes in shipping & products utils * remove classes * add const * remove getters in ProductsUtils * remove getters in Utils * remove getters in Utils
19 lines
455 B
JavaScript
19 lines
455 B
JavaScript
export function getCollection(collectionId, channelSlug) {
|
|
const query = `query Collection{
|
|
collection(id: "${collectionId}", channel: "${channelSlug}") {
|
|
id
|
|
slug
|
|
name
|
|
products(first:100){
|
|
totalCount
|
|
edges{
|
|
node{
|
|
id
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}`;
|
|
return cy.sendRequestWithQuery(query, "token");
|
|
}
|