Returning values partially in SQL returning array instead of object #2423
Unanswered
Jumaniyozov
asked this question in
Q&A
Replies: 1 comment
-
I think it's because of generated code where as return value it's using interface{} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a following query in which I'm partially returning values:
And returning in following way:
But in return receiving an array not an object. How can I get object? I also tried parsing it to custom struct but getting an error saying
json: cannot unmarshal array into Go value of type domain.UserReturnDTO
Beta Was this translation helpful? Give feedback.
All reactions