You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem is when I print the data, data is an array with the value of my hello field and data.hello returns undefined. I've also run the hello world example that is included in the project, printing data results in the same output but actually accessing data.hello seems to work as expected. I also checked the generated AppQuery.re and the decoding of the response is like below:
[%%raw {|
var decodeHello = function (res) {
return [
res.message,
]
}
var decodeQueryResult = function (res) {
return [
decodeHello(res.hello),
]
}
|}]
Seeing as this is returning an array, it seems reasonable that the data after the request finished is also an array. I just don't get how the record is being correctly made in the hello world example in this project and how to get the expected behavior which is getting my result as records. Since these examples and package haven't been updated in a while maybe there has been some breaking change which I can't seem to figure out.
The text was updated successfully, but these errors were encountered:
I'm running a simple hello world example similar to the one that is used as an example in this repo. Here is the code for it:
Problem is when I print the data, data is an array with the value of my hello field and data.hello returns undefined. I've also run the hello world example that is included in the project, printing data results in the same output but actually accessing data.hello seems to work as expected. I also checked the generated AppQuery.re and the decoding of the response is like below:
Seeing as this is returning an array, it seems reasonable that the data after the request finished is also an array. I just don't get how the record is being correctly made in the hello world example in this project and how to get the expected behavior which is getting my result as records. Since these examples and package haven't been updated in a while maybe there has been some breaking change which I can't seem to figure out.
The text was updated successfully, but these errors were encountered: