Hi!
I am trying to export a specific subset of a collection, using mongoexport.
I am doing it in the mongoshell - more precisely in intellishell in Studio3t.
Normal queries, on “normal” datatype columns (eg string, int, etc) works fine - but the column i need to query on, is a UUID stored as binary.
I have tried following the extended json wiki to insert binary data, but it does not work.
Each time, it complains about invalid json.
The --query parameter is getting this input(just printed to console): “–query,{“ship”: {”$binary": “�_�X/��B�”
which obviously looks weird, but if i try in whatever other formats i can convert it to, it still complains.
The error message looks sort of like this: " [191 189 2… 66 239 191 189 18]’ is not valid JSON"
I guess it makes sense that binary is invalid - but i thought the notation in extended json would make that part work.
I think its probably some obvious conversion, or escape char i am missing, but i cannot for the life of me figure it out. If anyone has an idea, that would be much appreciated