
* remove classes in shipping & products utils * remove classes * add const * remove getters in ProductsUtils * remove getters in Utils * remove getters in Utils
17 lines
386 B
JavaScript
17 lines
386 B
JavaScript
export function searchInShop(searchQuery) {
|
|
const query = `query SearchProducts {
|
|
products(channel: "default-channel", filter:{
|
|
search: "${searchQuery}"
|
|
}, first:10){
|
|
totalCount
|
|
edges{
|
|
node{
|
|
id
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}`;
|
|
|
|
return cy.sendRequestWithQuery(query, "token");
|
|
}
|