solution/pipeline-builder

There is no license information available for the latest version (v0.1) of this package.

Build pipeline for Mongo Aggregation Query

v0.1 2014-04-09 13:17 UTC

This package is not auto-updated.

Last update: 2024-10-23 11:41:03 UTC


README

Query builder for Mongo Aggregation Framework

Library not yet ready.

###Usage

  $configuration = new Configuration();
  $query = new Query($configuration);

  $pipeline = $query->addStage('stage1')
                ->match(['name' => 'Sasha', 'lastname' => 'Grey'])
                ->getQuery()
                ->getPipeline();

####Return

        [
            ['$match' => ['name' => 'Sasha', 'lastname' => 'Grey']]
        ];