Skip to content

Implement collection.length() method for retrieving number of objects #186

@tsmith023

Description

@tsmith023

Currently, the way to get the number of objects in a collection is to do

await collection.aggregate.overAll().then((res) => res.totalCount)

We should add a method:

await collection.length()

as a shortcut for this to bring feature-parity with the Python client to the TS client

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions