let docs = db.GetCollection<RecordWithEnum>()
docs.Insert { id = 1; color = ConsoleColor.Gray } |> ignore
match docs.tryFindOne(fun doc -> doc.color = ConsoleColor.Gray ) with
| Some { id = 1; color = ConsoleColor.Gray } -> pass()
| _ -> fail()
System.InvalidCastException: 'Value is not a valid BSON data type - Use Mapper.ToDocument for more complex types converts'
System.InvalidCastException: 'Value is not a valid BSON data type - Use Mapper.ToDocument for more complex types converts'