Skip to content

Add Where Nested Support #55

Open
Open
@likeadeckofcards

Description

@likeadeckofcards

We need to look into adding WhereNested in the query builder. This should work similar to the whereIn and that the resulting query needs to be distributed appropriately based on the current find request.

Some tests and their resulting find requests:

User::where('age', '>', 10)
    ->where(function($query) {
             $query->where('name_first', 'michael')
                   ->orWhere('name_last', 'deck');
    });
        
Find Requests:
[
   [
        'age' => '>10',
        'name_first' => 'michael'
    ],
    [
        'age' => '>10',
        'name_last' => 'deck',
    ]
]

Metadata

Metadata

Labels

enhancementNew feature or requestmajorTagged for a future major release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions