View Source MongoAgile.Controller (mongo_agile v0.8.1-rc)

Controller by default of MongoAgile

Example of use:

  • Controller

use MongoAgile.Controller,

collection: "test_aggregate",
pid_mongo: :mongo
  • Import AgilQuery + BulderQueries equivalent

import MongoAgile.Queries.AgilQuery use MongoAgile.BuilderQueries,

collection: "test_aggregate",
pid_mongo: :mongo

You would can extends the functionality, if overwrite exe_query

The controller use exe_query method of AgilQuery, but other would can create a custom controller, with a other functionality overwriting the method. and easily the execution of queries will be change.