How to get values from database in custom element

@subasskutti Hi, how did you pass an array into the custom element? Can you please share the code?