Retrieves the list of indexes declared for the record type associated with a query.
Retrieves the list of indexes declared for the record type associated with a query. If the record type doesn't declare any indexes, then returns None.
the query
the list of indexes, or an empty list.