Skip to content

How to pass options when using aggregation framework? #2237

@realtebo

Description

@realtebo

In a class i am using aggregation framework with a very complex pipeline

$results = $this->model_name::raw(function ($collection) use ($query) {
return $collection->aggregate($query)
});

i need to pass option to allow disk cache

How can I do this?

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