You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
Hello. I am getting a Mongo.WriteError when using Mongo.insert_many/4 with [continue_on_error: true]. I am setting the _id field, so can expect a duplicate key error once in a while. I assumed that continue_on_error would proceed in face of write errors. This is mentioned in an elixirforum post: https://elixirforum.com/t/understanding-dialyzer-error-the-pattern-can-never-match-the-type/31553
In the post it is suggested that Mongo.WriteError be added as an additional return type.
Hello. I am getting a
Mongo.WriteErrorwhen usingMongo.insert_many/4with[continue_on_error: true]. I am setting the_idfield, so can expect a duplicate key error once in a while. I assumed that continue_on_error would proceed in face of write errors. This is mentioned in an elixirforum post: https://elixirforum.com/t/understanding-dialyzer-error-the-pattern-can-never-match-the-type/31553In the post it is suggested that
Mongo.WriteErrorbe added as an additional return type.In the end, I just want
insert_manyto continue inserting the remaining items when it encounters write errors. Is this a possible change?