Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating a BSON inside a BSON not working #113

Open
DominikZians opened this issue Sep 30, 2023 · 0 comments
Open

updating a BSON inside a BSON not working #113

DominikZians opened this issue Sep 30, 2023 · 0 comments

Comments

@DominikZians
Copy link

In this snippet, the BSON type is behaving differently than Dict, which seems quite odd to me. Is this behavior intentional?

using Mongoc: BSON

d = Dict()
d["foo"] = Dict()
d["foo"]["bar"] = 42
d
# Dict{Any, Any} with 1 entry:
#   "foo" => Dict{Any, Any}("bar"=>42)

b = BSON()
b["foo"] = BSON()
b["foo"]["bar"] = 42
b
# BSON with 1 entry:
#   "foo" => Dict{String, Any}()

Julia 1.9.3 | Mongoc 0.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant