carbond.mongodb.MongoDBSaveObjectConfig

extends SaveObjectConfig

The MongoDB save object operation config

Instance Properties

allowUnauthenticated
boolean
Inherited fromSaveObjectConfig
Default false
Description Allow unauthenticated requests to the operation
description
string
Inherited fromSaveObjectConfig
Default undefined
Description A brief description of the operation used by the documentation generator
driverOptions
object.<string, *>
Required
Description Options to be passed to the mongodb driver (XXX: link to leafnode docs)
endpoint
Inherited fromSaveObjectConfig
(read-only)
Description The parent endpoint/collection that this configuration is a member of
example
Inherited fromSaveObjectConfig
Default undefined
Description An example response body used for documentation
idParameterName
string
Inherited fromSaveObjectConfig
(read-only)
Description The collection object id property name. Note, this is configured on the top level Collection and set on the configure during initialzation.
noDocument
boolean
Inherited fromSaveObjectConfig
Default false
Description Exclude the operation from “docgen” API documentation
options
object.<string, *>
Inherited fromSaveObjectConfig
Required
Description Any additional options that should be added to options passed down to a handler.
parameters
object.<string, carbond.OperationParameter>
Inherited fromSaveObjectConfig
Required
Description The object parameter definition
responses
Object.<string, carbond.OperationResponse>
Inherited fromSaveObjectConfig
Required
Description Add custom responses for an operation. Note, this will override all default responses.
returnsSavedObject
boolean
Inherited fromSaveObjectConfig
Default true
Description Whether or not the HTTP layer returns the object saved in the response
schema
Object
Inherited fromSaveObjectConfig
Default undefined
Description The schema used to validate the request body. If this is undefined, the collection level schema will be used.
supportsUpsert
boolean
Inherited fromSaveObjectConfig
Default false
Description Whether of not the client is allowed to create objects in the collection using the PUT method (i.e., is the client allowed to control the ID of a newly created object)