Lets make an array of all the possible index types for easier validation.

INDEX_TYPES = [ASCENDING, DESCENDING...]