vesparny/cimongo-codeigniter-mongodb-library — Issue #3: Limit does not work
Author: Foap
Created: 2012-02-23 10:11:12+00:00
State: open

Hello!

I tried to use the limit functionality but it makes no difference. All records are returned anyway.

I tried both:

$result = $this->cimongo->limit(1)->get('users');

and this:

$result = $this->cimongo->get('users')->limit(1);

and this:

$result = $this->cimongo->limit('1')->get('users');