Apply limit

https://docs.mongodb.com/manual/reference/operator/aggregation/limit/

Limits the number of documents passed to the next stage in the pipeline.

{ $limit: { <number> } }

If number == null then no limit stage is generated

Property definitions

mongodb $ MongoPipeline :: limit
	# Apply limit
	#
	# https://docs.mongodb.com/manual/reference/operator/aggregation/limit/
	#
	# Limits the number of documents passed to the next stage in the pipeline.
	#
	# ~~~json
	# { $limit: { <number> } }
	# ~~~
	#
	# If `number == null` then no limit stage is generated
	fun limit(number: nullable Int): MongoPipeline do
		if number == null then return self
		return add_stage("limit", number)
	end
lib/mongodb/queries.nit:448,2--462,4