get
function
Get a single instance from the "data interface".
connection.get(set)
Gets an instance from getData and runs the resulting data through hydrateInstance.
Parameters
- params
{Object}:Data specifying the instance to retrieve. Normally, this looks like:
{id: 5}.
Returns
{Promise<Instance>}:
An instance that represents the data that was loaded.
Use
Call .get() with the parameters that identify the instance
you want to load. .get() will return a promise that resolves
to your instance.
todoConnection.get({id: 6}).then(function(todo){ })