limitCreates a QueryLimitConstraint that only returns the first matching documents. function limit(limit: number): QueryLimitConstraint;§limit(limit: number): QueryLimitConstraint[src]§Parameters§limit: number[src] The maximum number of items to return. §Return Type§QueryLimitConstraint[src]The created QueryLimitConstraint.