Add Query for productByPath (#117)
This commit is contained in:
@@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user