Table.get()
Syntax
Parameters
primaryKey
Primary key of object to get
{keyPath1: value1, keyPath2: value2, ...}
Criteria to filter
Callback Parameters
Return Value
Promise<T | undefined>
If no item was found, then the returned promise will resolve with undefined
. Otherwise it will resolve with the found value.
Remarks
Fetches an object with a given primaryKey or where the given criteria ({keyPath1: value1, keyPath2: value2})
are fulfilled and returns the first matching result.
If the operation succeeds, then the returned Promise will resolve with the result of the operation, calling any Promise.then() callback.
If the operation fails, then the returned promise will reject, calling any Promise.catch() callback.
Samples
See Also
Table.bulkGet()