limit ( mdb-query-msg limit# -- mdb-query-msg )


Vocabulary
mongodb.driver

Inputs
mdb-query-msga query
limit#number of objects that should be returned at most


Outputs
mdb-query-msga query


Word description
Limits the number of returned objects to limit#

Examples
USING: mongodb.driver ; "db" "127.0.0.1" 27017 <mdb> [ "mycollection" H{ } <query> 10 limit find ] with-db


Definition


: limit ( mdb-query-msg limit# -- mdb-query-msg ) >>return#
; inline