Fatal error: Uncaught MongoDB\Driver\Exception\BulkWriteException: E11000 duplicate key error collection: u28.beers index: _id_ dup key: { _id: 1 } in /var/shared/vendor/mongodb/mongodb/src/Operation/InsertOne.php:134
Stack trace:
#0 /var/shared/vendor/mongodb/mongodb/src/Operation/InsertOne.php(134): MongoDB\Driver\Server->executeBulkWrite()
#1 /var/shared/vendor/mongodb/mongodb/src/Collection.php(931): MongoDB\Operation\InsertOne->execute()
#2 /home/course/u28/public_html/examples_php_mongo/beers.php(16): MongoDB\Collection->insertOne()
#3 {main}
thrown in /var/shared/vendor/mongodb/mongodb/src/Operation/InsertOne.php on line 134