Helper for not so common case, where you nested object is flatten into lot of key -> vals, where key is created by join all keys in chain with dot. {'index.type':1} is {index: {type: 1}} and so. Works with arrays too. {'array.0':"a",'array.1':"b"} became {array:["a","b"]}