How to get values from database in custom element

attribute pass only string and mumber
not array so iam getting array in this page