You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But in laravel docs does mongodb $all has another behavior that check each fields( like $exist but in one go without loop)
{ "title":"Cosmos","year": 1980,"runtime": 60,"imdb": {"rating": 9.3,"votes": 17174,"id": 81846},},//Is this correct, or does mongodb $all has another behavior that check each fields( like $exist but in one go without loop)$result = DB::table('movies') ->where('movies', 'all', ['title', 'rated', 'imdb.rating'])
->get();
The text was updated successfully, but these errors were encountered:
masterbater
changed the title
[Feature Request] Clarify Docs about all
Clarify Docs about all
Feb 27, 2025
https://www.mongodb.com/docs/drivers/php/laravel-mongodb/current/query-builder/#contains-all-fields-example
It states that it scans all fields that exist, but what I know is that $all checks if all specified array match on the field that is an array
But in laravel docs does mongodb $all has another behavior that check each fields( like $exist but in one go without loop)
The text was updated successfully, but these errors were encountered: