Add Query for productByPath (#117)

This commit is contained in:
Anders Gustafsson
2022-09-02 11:41:34 +02:00
committed by GitHub
parent f8f91247cf
commit eeb69fe5f0
4 changed files with 31 additions and 0 deletions
+9
View File
@@ -119,6 +119,15 @@ export function product(id: number) {
);
}
export function productByPath(path: string) {
return (
baseQuery +
/* sql */ `
WHERE products.path = '${path}'
`
);
}
export function categoryProducts(categoryId: number) {
return (
baseQuery +