Replaces the generic types for query methods with a hardcoded type of
Record.