I am not sure if this would help, but the getAttString(attribute: string) accepts string and your response returns data: {key: comma separated list} may be if you destruct your response
const {data} = {your response}
getAttString(data.CommaSeparatedString)