diff --git a/assets/base.css b/assets/base.css index dfdaf1475..e63ea1aa4 100644 --- a/assets/base.css +++ b/assets/base.css @@ -127,4 +127,3 @@ a { opacity: 1; } } - diff --git a/assets/components.css b/assets/components.css index 8c4c5a357..ebebcc238 100644 --- a/assets/components.css +++ b/assets/components.css @@ -1,3 +1,3 @@ .fit { min-height: calc(100vh - 88px); -} \ No newline at end of file +} diff --git a/framework/vendure/product/get-all-products.ts b/framework/vendure/product/get-all-products.ts index b292e0246..e947cfb9b 100644 --- a/framework/vendure/product/get-all-products.ts +++ b/framework/vendure/product/get-all-products.ts @@ -4,7 +4,14 @@ import { GetAllProductsQuery } from '../schema' import { normalizeSearchResult } from '../lib/normalize' import { getAllProductsQuery } from '../lib/queries/get-all-products-query' -export type ProductVariables = { first?: number } +export type ProductVariables = { + first?: number + skip?: number + facetValueIds?: number[] | number + collectionSlug?: string + searchTerm?: string + groupByProduct?: boolean +} async function getAllProducts(opts?: { variables?: ProductVariables @@ -26,7 +33,11 @@ async function getAllProducts({ const variables = { input: { take: vars.first, - groupByProduct: true, + skip: vars.skip, + term: vars.searchTerm, + facetValueIds: vars.facetValueIds, + collectionSlug: vars.collectionSlug, + groupByProduct: vars.groupByProduct ? true : false, }, } const { data } = await config.fetch(query, { variables })