Parsing PostgreSQL jsonb array gets error #6077
Labels
Area: Data
Issue is related to filtering, sorting, pagination or projections
🐛 bug
Something isn't working
🌶️ hot chocolate
Is there an existing issue for this?
Product
Hot Chocolate
Describe the bug
An error throws when trying to execute query a model with an attribute of type jsonb that contains an array.
I saw similar problem #4429 . But in my case another error occurs.
Steps to reproduce
And I have simple query method:
And I have mutations methond, ofc. But I think It doesn't matter now.
Data was successfully written to the database:
![image](https://user-images.githubusercontent.com/45885378/233650349-71e07dbe-af1f-42e7-9a4c-c2ef6922ab50.png)
And I get the error: No coercion operator is defined between types 'System.String' and 'System.String[]'.
![image](https://user-images.githubusercontent.com/45885378/233650831-cdd77ac9-6dde-4f09-96a0-be2e8027ee42.png)
When I use query without structArray it works fine:
So is this a bug and am I doing something wrong?
Relevant log output
Additional Context?
It works fine with simple jsonb attributes or simple arrays. But jsonb with arrays broke the program.
Version
12.15.2
The text was updated successfully, but these errors were encountered: