Skip to content

AbstractSearch to support use of with by default #24

Closed
@lindyhopchris

Description

@lindyhopchris

AbstractSearch should have a with method that receives the builder instance. By default, this should apply the contents of $this->with (a new property) if that property is not empty.

The with method should be invoked for both a standard search and a find many search.

This will encourage use of eager loading with searches, which is best practice because of the inefficiencies of not using eager loading when returning multiple JSON API resources at once.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions