I am facing an issue with retrieving the value of the status
property from an object in my code. Below is a snippet of what I have tried:
console.log("Resource.query()");
console.log(Resource.query());
console.log("Resource.query().status");
console.log(Resource.query().status);
Upon checking the Chrome console, it shows that Resource.query().status
returns undefined
, whereas Resource.query()
returns the object itself. How can I successfully retrieve the value of status
?
Any help would be greatly appreciated.