import { SpotifyGraphQLClient } from './index'; let client: any = SpotifyGraphQLClient({ clientId: '', clientSecret: '', redirectUri: '', // tslint:disable-next-line:max-line-length accessToken: 'BQBToAE6qGSo9sAGAxTSXDrFH2GrSOlJipzgfxyFvGnicI2V4oUVX4sSlAUsoVkFlP6mJPwW4nzHg1vtfxjiBf3YpkCE2HP7iu98du_dtCgxOkcWGOeDspfACX311nKZ9CoOkOUyMd3madpgEMoVNWxz9IGD37ccsoBWYI86X3ynySGawZB-RIbDlT9A1ssrwu6qRoGA1bOhAEnst93d' }); client.query(` query { me { playlists(throttle: 50, limit: 1) { tracks(throttle: 50) { track { artists(full: 1, throttle: 5) { name } } } } } } `).then((executionResult) => { return JSON.stringify(executionResult, null, 4); }).then(console.log, console.error);