Releases: TCB13/sequel-mongo-php
Releases · TCB13/sequel-mongo-php
PHP 8.1
The Future And Beyond
- Allow PHP versions >=7.2
Unwind fix
- Unwind method fix to accomodate the recent changes in joins.
Multiple Joins
- Multiple joins (lookups) and unwinds in a single query
Get Global Connection
- Added QueryBuilder::getGlobalConnection method.
Update MongoDB Extension
- Update MongoDB Extension
Debug you must!
- Debug the final pipelines built by the query builder.
QueryBuilder::$pipelineDebug = true; // Enable pipeline debugging!
// Run a query
$result = (new QueryBuilder())->collection("xyz")
->where("active", true)
->findAll()
->toArray();
// Fetch the pipeline built by the Query Builder
var_dump(QueryBuilder::getLastPipelineLog()); // Get the pipeline built for the last query
var_dump(QueryBuilder::getPipelineLogs()); // Get all pipelines ever built by the query builder
Faster everything
Faster queries on large collections by removing the default order based on _id
.
Update your pipelines!
- QueryBuilder::update() implemented custom pipelines.
Simpler Dimensions
- Added
QueryBuilder::toUnidimensionalArray()
.