Home > @shopware-pwa/shopware-6-client > getProducts
# getProducts() function
Get default amount of products
Signature:
export declare function getProducts(criteria?: ShopwareSearchParams, contextInstance?: ShopwareApiInstance): Promise<EntityResult<"product", Product[]>>;
# Parameters
Parameter | Type | Description |
---|---|---|
criteria | ShopwareSearchParams | |
contextInstance | ShopwareApiInstance |
Returns:
Promise<EntityResult<"product", Product[]>>
# Exceptions
ClientApiError