Skip to content

Syntax for COUNT(), AVG() and SUM() #673

@adnan-kamili

Description

@adnan-kamili

I didn't find any docs for operations like count(), avg(), sum(). Something like:

const productCount = await this.productRepository.count({ accountId });
const itemCount = await this.productRepository.find({accountId}).sum("items");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions