Class: DBObjectDeleteTemplate

DBObjectDeleteTemplate


new DBObjectDeleteTemplate(name:, uri: [, options])

Parameters:
Name Type Argument Description
name: String

valid DBObject name

uri: Object

[{route, method}] object if not DELETE @ '/api/'

options Object <optional>
Properties
Name Type Description
soft: boolean

set to true to test a soft delete

hard: boolean

set to true to test a hard delete

linkedObjects: String

JSON of DBObject names associated with the linkedObjects (i.e. nested objects to be removed with the parent object)

returnedProp: String

name of the property which contains the object / objectId

check: String

set to true to test if returned deleted object is the same as before

Source: