Using monger, I am writing a document that contains a vector with a keyword item to a collection like
(monger.collection/insert-and-return db
"test-coll" {:_id 1 :some-vector [:a-keyword]})
which returns as expected
{:_id 1, :some-vector [:a-keyword]}
but then if I fetch the particular document like
(monger.collection/find-map-by-id db "test-coll" 1)
the keyword has been changed to a string
{:_id 1, :some-vector ["a-keyword"]}
Is that expected behaviour and if so why?