Skip to content

Instantly share code, notes, and snippets.

Created June 20, 2022 15:23
What would you like to do?
Example of limit the number of records
* Use $limit if you are using aggregate
$limit: 10,
* Use Schema.limit if you are using mongoose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment