static async getXP(token, userId) {
try {
const mondayClient = initMondayClient();
mondayClient.setToken(token);
const response = await mondayClient.storage.instance.getItem('USER' + userId).then(res => {
console.log(res.data.value);
return res;
}).catch(err => {
console.log(err);
return err;
});
return response;
} catch (err) {
console.log(err);
}
}
I am getting an error stating that mondayClient.storage is undefined and so its property ‘instance’ cannot be read. I know mondayClient is defined because I can query the GraphQL API. I am trying to access the storage API from a Node js back end. Can the storage API only be accessed from the client or something, or am I just not seeing my mistake?