W3cubDocs

/RethinkDB Ruby

ReQL command: skip

Command syntax

sequence.skip(n) → stream
array.skip(n) → array

Description

Skip a number of elements from the head of the sequence.

Example: Here in conjunction with order_by we choose to ignore the most successful heroes.

r.table('marvel').order_by(:success_metric).skip(10).run(conn)

Related commands

Get more help

Couldn't find what you were looking for?

© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
https://rethinkdb.com/api/ruby/skip/