Skip to content

Commit 060c79b

Browse files
committed
fix missing excludes from dumping
1 parent cc8bb75 commit 060c79b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/mongo/collection.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,12 @@ defmodule Mongo.Collection do
706706
defp ensure_nested_map(%{__struct__: NaiveDateTime} = data) , do: data
707707
defp ensure_nested_map(%{__struct__: Time} = data), do: data
708708
defp ensure_nested_map(%{__struct__: BSON.ObjectId} = data), do: data
709+
defp ensure_nested_map(%{__struct__: BSON.Binary} = data), do: data
710+
defp ensure_nested_map(%{__struct__: BSON.Regex} = data), do: data
711+
defp ensure_nested_map(%{__struct__: BSON.JavaScript} = data), do: data
712+
defp ensure_nested_map(%{__struct__: BSON.Timestamp} = data), do: data
713+
defp ensure_nested_map(%{__struct__: BSON.LongNumber} = data), do: data
714+
709715
defp ensure_nested_map(%{__struct__: _} = struct) do
710716
map = Map.from_struct(struct)
711717
:maps.map(&dump/2, map) |> filter_nils()

0 commit comments

Comments
 (0)