Back to top

ReQL command: get

Command syntax

table.get(key) → singleRowSelection


Get a document by primary key.

If no document exists with that primary key, get will return None.

Example: Find a document by UUID.


Example: Find a document and merge another document with it.

    { 'powers': ['invisibility', 'speed'] }

_Example: Subscribe to a document’s changefeed.

changes = r.table('heroes').get(3).changes().run(conn)

Get more help

Couldn't find what you were looking for?