array of number returning strings
Hey,
I've defined an array of number in my schema:
The problem is that when I retrieve the value, it's actually typed as an array of string:
price: string[]
How comes? How can I get the right type? (number[]
)
When I hover on the column declaration on my schema, it shows this: see capture
Why is the data: string[]
?![No description](https://cdn.answeroverflow.com/1264599842059976714/Screenshot_2024-07-21_at_16.59.33.png)
1 Reply
The solution was to add this to my schema definition: