The Add-MdbcData example in the README.md results in a duplicate key error:
# Remove any existing documents to be sure
@{_id = 1}, @{_id = 2} | Remove-MdbcData
# Add two documents
@{_id = 1; value = 42}, @{_id = 2; value = 3.14} | Add-MdbcData
The Add-MdbcData throws the error: _E11000 duplicate key error collection: fe.systemconfigurations index: configId1 dup key: { configId: null }. The expected behavior is to add the two documents. In viewing the collection, the first document is written, but the second document is not.
The Add-MdbcData example in the README.md results in a duplicate key error:
The Add-MdbcData throws the error: _E11000 duplicate key error collection: fe.systemconfigurations index: configId1 dup key: { configId: null }. The expected behavior is to add the two documents. In viewing the collection, the first document is written, but the second document is not.