Skip to content

throw new InvalidArgumentException('$pipeline is empty'); #398

@719media

Description

@719media

why is an exception thrown for an empty pipeline? Like db.test.aggregate([])?

db.test.aggregate([]) works fine directly in mongo

See https://github.com/mongodb/mongo-php-library/blob/master/src/Operation/Aggregate.php#L115

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