Extends
Methods
delete(_id) → {*}
Deletes a recod in the model
Parameters:
Name | Type | Description |
---|---|---|
_id |
string | Mongo Record ID |
- Inherited From:
- Source:
Returns:
- Type
- *
get(_id) → {*}
Retrieves one or more records
Parameters:
Name | Type | Description |
---|---|---|
_id |
string | optional mongo record id |
- Inherited From:
- Source:
Returns:
- Type
- *
post(record) → {*}
Create a new record
Parameters:
Name | Type | Description |
---|---|---|
record |
object | matches the format of the schema |
- Inherited From:
- Source:
Returns:
- Type
- *
put(_id, record) → {*}
Replaces a record in the database
Parameters:
Name | Type | Description |
---|---|---|
_id |
string | Mongo Record ID |
record |
object | The record data to replace. ID is a required field |
- Inherited From:
- Source:
Returns:
- Type
- *