Fundamentally this isn’t a question about the Node Driver or even drivers in general but is a question about server insert behaviour within transactions. In order for drivers to return the result of all uniqueness checks, the server would have to return those failures to the driver.

The easiest way to view the information returned by the server is to use insert server command via runCommand. Then you can see the server response directly.

Hope that helps!

Sincerely,
James

1 Like