Product Statistics service (used for getting product counts etc)

Constructors

Methods

  • Get category list with product count from database

    Parameters

    • categoryIds: string[]

    Returns Promise<{
        count: number;
        id: string;
    }[]>

    product count of category query result

    FIXME implementation seems strange for this method; it should be refactored

  • Get location product count

    Parameters

    • locationIds: string[]

    Returns Promise<{
        count: number;
        id: string;
    }[]>

    product count of location query result FIXME implementation seems strange for this method; it should be refactored

Properties

db: Db

Generated using TypeDoc