Nick Schaefer
Nick Schaefer
CCConvex Community
Created by Nick Schaefer on 12/23/2024 in #support-community
Request for better Swift Error Handling
Ok, I'm wrong. I missed this line:
The data from the remote function will be deserialized to your custom struct. Often your use of the type can be inferred from the calling context, and you can skip the yielding argument.
8 replies
CCConvex Community
Created by Nick Schaefer on 12/23/2024 in #support-community
Request for better Swift Error Handling
So it seems that in Swift the return value from an action and mutation has to be a String. So I'll just be stringifying the data instead. If this helps anyone who finds this. Or if I'm wrong please let me know.
8 replies
CCConvex Community
Created by Nick Schaefer on 12/23/2024 in #support-community
Request for better Swift Error Handling
I think I may have found my culprit... My return value was in fact an object. I thought that code was checking the argument types. So the error was more useful than I thought, but still very confusing.
8 replies