Trait reql::commands::Get [] [src]

pub trait Get {
    fn get<T>(&self, key: T) -> Command where T: ToArg;
}

Get a document by primary key

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

Example

Find a document by UUID.

r.table("posts").get("a9849eef-7176-4411-935b-79a6e3c56a74");

Example

Find a document and merge another document with it.

r.table("heroes").get(3).merge(args!({powers: ["invisibility", "speed"]}));

Example

Subscribe to a document’s changefeed.

r.table("heroes").get(3).changes();

Related commands

Required Methods

Implementors