Simple Schema multiple types for field


#1

Hello Everybody!
I was wondering if its possible to have multiple types for a single field in simple schema, something like this:

new SimpleSchema({
    param: {
        type: [ String, Number ]
    }
});

@aldeed
Thanks a lot!


#2

I thing it has to be a string. If you store a number aybe you could try turn the string back into a number?


#3

Is not possible then?