Started by Debarghya DasSep 29, 2021

Open
MongoDB aggregation based on "$skip" parameter value

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

So, as far as I understood, $skip takes only positive integers, and this might be a reason why I am getting an error when I pass in a 0. Now, my question is is there a way to conditionally implement $skip if a variable accepted equals to 0?

0 Replies

You must be Logged in to reply
Techiio

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

facebooklinkdeintwitter

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Copyright techiio.com @2020 Kolkata, India
made with by Abhishek & Priyanka Jalan
Copyright techiio.com @2020
made with by Abhishek & Priyanka Jalan