Error inserting data into mongodb using nodejs

  node.js, question

When I use nodejs to operate mongodb, it is normal to read data and update data, that is, when inserting data, I report an error and prompt:
{ MongoError: Cannot read property ‘maxBsonObjectSize’ of null

at Function.MongoError.create (C:\Users\Administrator\AppData\Roaming\npm\node_modules\mongodb\node_modules\mongodb-core\lib\error.js:31:11)
 at toError (C:\Users\Administrator\AppData\Roaming\npm\node_modules\mongodb\lib\utils.js:114:22)
 at C:\Users\Administrator\AppData\Roaming\npm\node_modules\mongodb\lib\collection.js:656:23
 at handleCallback (C:\Users\Administrator\AppData\Roaming\npm\node_modules\mongodb\lib\utils.js:96:12)
 at resultHandler (C:\Users\Administrator\AppData\Roaming\npm\node_modules\mongodb\lib\bulk\ordered.js:429:14)
 at C:\Users\Administrator\AppData\Roaming\npm\node_modules\mongodb\node_modules\mongodb-core\lib\wireprotocol\2_4_support.js:473:9
 at _combinedTickCallback (internal/process/next_tick.js:67:7)
 at process._tickCallback (internal/process/next_tick.js:98:9)

name: ‘MongoError’,
message: ‘Cannot read property ‘maxBsonObjectSize’ of null’,
driver: true,
code: 14,
index: 0,
errmsg: ‘Cannot read property ‘maxBsonObjectSize’ of null’,
getOperation: [Function],
toJSON: [Function],
toString: [Function] }
Has any friend encountered this problem?

Is maxBsonObjectSize here a field in the inside of the database document? If yes, even if you don’t want to insert a value in maxBsonObjectSize, you should give it a null value when inserting data, such as null string”, null array [], etc.