spotify-graphql-server
spotify-graphql-server copied to clipboard
tracks of albums are not loaded
List of tracks is always empty, eg:
https://spotify-graphql-server.herokuapp.com/graphql?query=%7B%0A%20%20queryArtists(byName%3A%20%22Red%20Hot%20Chili%20Peppers%22)%20%7B%0A%20%20%20%20name%0A%20%20%20%20albums%20%7B%0A%20%20%20%20%20%20name%0A%20%20%20%20%20%20id%0A%20%20%20%20%20%20tracks%20%7B%0A%20%20%20%20%20%20%20%20id%0A%20%20%20%20%20%20%20%20name%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A
results in
{
"data": {
"queryArtists": [
{
"name": "Red Hot Chili Peppers",
"albums": [
{
"name": "The Getaway",
"id": "43otFXrY0bgaq5fB3GrZj6",
"tracks": []
},
{
"name": "I'm With You",
"id": "5wZtSIvijWCMc1vlPFqAyB",
"tracks": []
},
{
"name": "Stadium Arcadium (U.S. Version)",
"id": "7xl50xr9NDkd3i2kBbzsNZ",
"tracks": []
},
{
"name": "By The Way (Deluxe Version)",
"id": "6deiaArbeoqp1xPEGdEKp1",
"tracks": []
},
{
"name": "By The Way (U.S. Version)",
"id": "1jWKVgnHX8nwR551hQNx5K",
"tracks": []
},
...
},
```
To reduce too much requests sent to spotify, I want to introduce dataloader first: issue #56