withDataVolume
Method
interface MongoDBServerResource { // ... omitted for brevity withDataVolume( name?: string, isReadOnly?: boolean): MongoDBServerResource;}Signature
method
withDataVolume builder Adds a named volume for the data folder to a MongoDB container resource.
withDataVolume( name?: string, isReadOnly?: boolean): MongoDBServerResourceParameters
name string optional isReadOnly boolean optional = False Returns
MongoDBServerResource Applies to
This method applies to the following types: