# NOT RUN {
# Set up a connection to DEFAULT_DB
cn <- connect()
tvs <- collection("tv_shows", cn)
# Take a look at gathered entries
isolate(tvs$collection)
# Using post_process you might use specific rethinkDB operations
# in rethinker query format before query is run (like filter, orderBy).
# E.g., to gather only tv shows with less than 100 episodes use:
tvs <- collection("tv_shows", cn,
post_process = function(q) q$filter(function(x) x$bracket("episodes")$lt(100)))
# }
Run the code above in your browser using DataLab