Constructors
constructor
- new MongoDBNamespace(db, collection?): MongoDBNamespace
Parameters
- db: string
Optional collection: string
Properties
Optional collection
collection?: string
db
db: string
Methods
toString
- toString(): string
Returns string
withCollection
- withCollection(collection): MongoDBCollectionNamespace
Static fromString
- fromString(namespace?): MongoDBNamespace
Parameters
Optional namespace: string
Create a namespace object