I could be doing something ridiculously dumb, but I am trying to use amplify.request() to retrieve a user's github repos. Every example I read, the "data" parameter of the success callback is what it should be: the JSON deserialized into an object. However when I try and do this, the data parameter is actually an object with two properties, data.meta and data.data, with the data.data containing what I actually want.
Am I doing something wrong? Below is my source code.
Hi,
I could be doing something ridiculously dumb, but I am trying to use amplify.request() to retrieve a user's github repos. Every example I read, the "data" parameter of the success callback is what it should be: the JSON deserialized into an object. However when I try and do this, the data parameter is actually an object with two properties,
data.meta
anddata.data
, with thedata.data
containing what I actually want.Am I doing something wrong? Below is my source code.
Thanks!