Global

Members

access

Defines an access rule for a model and method combination. When access is requested via a REST call, the function provided will be executed and the callback from that method will determine if the access will be allowed or denied. Multiple access functions can be provided for a single model and method allowing authentication checks to be stacked.
Source:

Methods

"boolean, function"(removePersistent, callback)

Drop collections and optionally drop persistent storage with callback.
Parameters:
Name Type Description
removePersistent Boolean True to drop persistent storage, false to keep it.
callback function Callback method.
Source:

"boolean, function"(removePersistent, callback)

Drop collections and optionally drop persistent storage with callback.
Parameters:
Name Type Description
removePersistent Boolean True to drop persistent storage, false to keep it.
callback function Callback method.
Source:

"string, *, function"(event, id, listener)

Attach an event listener to the passed event only if the passed id matches the document id for the event being fired.
Parameters:
Name Type Description
event String The name of the event to listen for.
id * The document id to match against.
listener function The method to call when the event is fired.
Source:

"string, function"(event, listener)

Attach an event listener to the passed event.
Parameters:
Name Type Description
event String The name of the event to listen for.
listener function The method to call when the event is fired.
Source:

boolean(removePersistent)

Drop collection and optionally drop persistent storage.
Parameters:
Name Type Description
removePersistent Boolean True to drop persistent storage, false to keep it.
Source:

boolean(removePersistent)

Drop collection and optionally drop persistent storage.
Parameters:
Name Type Description
removePersistent Boolean True to drop persistent storage, false to keep it.
Source:

function(callback)

Drop collection and persistent storage with callback.
Parameters:
Name Type Description
callback function Callback method.
Source:

function(callback)

Drop collection and persistent storage with callback.
Parameters:
Name Type Description
callback function Callback method.
Source: