Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
MongoDB and the $slice operator
  • I am using:
    $mongodb->order_by(array('date' => 'desc'))->limit(30)->offset(0);
    $output = $mongodb->get('post'); Now I want to use the slice operator to limit the amount of comments I get. In mongo shell I can use the $slice operator like this:
    comments:{$slice: 5} but I am not sure how I can translate that over when using fuel. Any ideas?
  • Sill havent been able to figure this out. Any guess?
  • Would be awesome if someone could help me with this
  • anyone?
  • No experience, sorry. Perhaps you can hop onto our IRC channel (#fuelphp), I know some people there use MongoDb.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion