Here is an example of accessing the data, you will need to use that $response.data.viewer.homes[0].currentSubscription.priceInfo.current.total
mess I posted earlier inside an expression to access the data:
You can assign $response.data.viewer.homes[0].currentSubscription.priceInfo.current.total
, $response.data.viewer.homes[0].currentSubscription.priceInfo.current.startsAt
, etc. to variables so that you don’t need to type the whole thing in multiple places.
I don’t think you will be able to assign any of the higher level $response
data like $response.data.viewer.homes
to a variable. There is some special sauce to support accessing those properties of $response
and it does not apply to normal variables. For example, you can assign it to a dynamic current
variable, but then you can’t use that variable like an array (e.g. current.tax
) because it looks for a variable with the name current.tax
rather than a variable current
with item tax
. You also can’t assign it to a dynamic[] current
list variable because there is no way to assign entire lists, can only assign a value at a specific index: