< Back

Add-MdbcCollection

Sat Jan 18, 2020 11:31 am

NAME Add-MdbcCollection



SYNOPSIS

Creates a new collection in the database.





SYNTAX

Add-MdbcCollection [-Name] <String> [-Database <IMongoDatabase>] [-Options <CreateCollectionOptions>]

[<CommonParameters>]





DESCRIPTION

This cmdlet is needed for creation of collections with extra options, like capped collections. Ordinary

collections do not have to be added explicitly.





PARAMETERS

-Name

Specifies the name of a new collection.



Required? true

Position? 0

Default value

Accept pipeline input?

Accept wildcard characters?



-Database

Database instance. If it is omitted then the variable $Database is used. It is obtained by Connect-Mdbc,

Get-MdbcDatabase, or using the driver API.



Required? false

Position? named

Default value

Accept pipeline input?

Accept wildcard characters?



-Options

Extra options, see MongoDB.Driver.CreateCollectionOptions



Required? false

Position? named

Default value

Accept pipeline input?

Accept wildcard characters?



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS