Skip to content

Deleting With Limit Doesn't Work #2502

Closed
@ceater-sigma

Description

@ceater-sigma
  • Laravel Version: 9
  • PHP Version: 8.0
  • MongoDB Version: 3.9

Description:

Hello, i have problem when deleting data using where + limit. Even using limit is not working. The command didn't use the limit parameter.

Steps to reproduce

BalanceModel::where('time', '<=', 1670707849677)->take(1)->delete();

Expected behaviour

Delete BalanceModel where time < xxxx limit 1

Actual behaviour

When i run that command, it delete using time parameter and delete document without limiting the delete command

The Current Operation Image Status
image
image

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