graphql-spotify
Advanced tools
Comparing version 0.4.14 to 0.4.141
@@ -576,4 +576,4 @@ module.exports = | ||
const { | ||
PlaylistLoader, PlaylistTracksLoader, AlbumLoader, UserLoader, ArtistLoader, | ||
AudioFeaturesLoader, SavedContainsLoader, TrackLoader | ||
PlaylistLoader, PlaylistTracksLoader, AlbumsLoader, UserLoader, ArtistsLoader, | ||
AudioFeaturesLoader, SavedContainsLoader, TracksLoader | ||
} = (0, _SpotifyWebApi.makeLoaders)(token); | ||
@@ -595,6 +595,6 @@ | ||
artist: async (obj, { artistId }) => { | ||
return await ArtistLoader.load(artistId); | ||
return await ArtistsLoader.load(artistId); | ||
}, | ||
track: async (obj, { id }) => { | ||
return await TrackLoader.load(id); | ||
return await TracksLoader.load(id); | ||
}, | ||
@@ -657,15 +657,15 @@ audioFeatures: async (obj, { id }) => { | ||
followerCount: async ({ id }) => { | ||
const artistFull = await ArtistLoader.load(id); | ||
const artistFull = await ArtistsLoader.load(id); | ||
return artistFull.followers.total; | ||
}, | ||
images: async ({ id }) => { | ||
const artistFull = await ArtistLoader.load(id); | ||
const artistFull = await ArtistsLoader.load(id); | ||
return artistFull.images; | ||
}, | ||
popularity: async ({ id }) => { | ||
const artistFull = await ArtistLoader.load(id); | ||
const artistFull = await ArtistsLoader.load(id); | ||
return artistFull.popularity; | ||
}, | ||
genres: async ({ id }) => { | ||
const artistFull = await ArtistLoader.load(id); | ||
const artistFull = await ArtistsLoader.load(id); | ||
return artistFull.genres; | ||
@@ -677,19 +677,19 @@ } | ||
genres: async object => { | ||
const AlbumFull = await AlbumLoader.load(object.id); | ||
const AlbumFull = await AlbumsLoader.load(object.id); | ||
return AlbumFull.genres; | ||
}, | ||
label: async object => { | ||
const AlbumFull = await AlbumLoader.load(object.id); | ||
const AlbumFull = await AlbumsLoader.load(object.id); | ||
return AlbumFull.label; | ||
}, | ||
popularity: async object => { | ||
const AlbumFull = await AlbumLoader.load(object.id); | ||
const AlbumFull = await AlbumsLoader.load(object.id); | ||
return AlbumFull.popularity; | ||
}, | ||
release_date: async object => { | ||
const { release_date } = await AlbumLoader.load(object.id); | ||
const { release_date } = await AlbumsLoader.load(object.id); | ||
return release_date; | ||
}, | ||
release_date_precision: async object => { | ||
const { release_date_precision } = await AlbumLoader.load(object.id); | ||
const { release_date_precision } = await AlbumsLoader.load(object.id); | ||
return release_date_precision; | ||
@@ -871,3 +871,3 @@ } | ||
PlaylistLoader: makePlaylistLoader(token), | ||
PlaylistTracksLoader: makePlaylistLoader(token), | ||
PlaylistTracksLoader: makePlaylistTracksLoader(token), | ||
AlbumsLoader: makeAlbumsLoader(token), | ||
@@ -874,0 +874,0 @@ ArtistsLoader: makeArtistsLoader(token), |
{ | ||
"name": "graphql-spotify", | ||
"version": "0.4.14", | ||
"version": "0.4.141", | ||
"description": "GraphQL Schema And Resolvers For Spotify Web API", | ||
@@ -5,0 +5,0 @@ "main": "dist/lib.js", |
@@ -7,4 +7,4 @@ import { | ||
const { | ||
PlaylistLoader, PlaylistTracksLoader, AlbumLoader, UserLoader, ArtistLoader, | ||
AudioFeaturesLoader, SavedContainsLoader, TrackLoader | ||
PlaylistLoader, PlaylistTracksLoader, AlbumsLoader, UserLoader, ArtistsLoader, | ||
AudioFeaturesLoader, SavedContainsLoader, TracksLoader | ||
} = makeLoaders(token); | ||
@@ -26,6 +26,6 @@ | ||
artist: async(obj, {artistId}) => { | ||
return await ArtistLoader.load(artistId) | ||
return await ArtistsLoader.load(artistId) | ||
}, | ||
track: async(obj, {id}) => { | ||
return await TrackLoader.load(id) | ||
return await TracksLoader.load(id) | ||
}, | ||
@@ -88,15 +88,15 @@ audioFeatures: async (obj, {id}) => { | ||
followerCount: async ({ id }) => { | ||
const artistFull = await ArtistLoader.load(id) | ||
const artistFull = await ArtistsLoader.load(id) | ||
return artistFull.followers.total | ||
}, | ||
images: async ({ id }) => { | ||
const artistFull = await ArtistLoader.load(id) | ||
const artistFull = await ArtistsLoader.load(id) | ||
return artistFull.images | ||
}, | ||
popularity: async ({ id }) => { | ||
const artistFull = await ArtistLoader.load(id) | ||
const artistFull = await ArtistsLoader.load(id) | ||
return artistFull.popularity | ||
}, | ||
genres: async ({ id }) => { | ||
const artistFull = await ArtistLoader.load(id) | ||
const artistFull = await ArtistsLoader.load(id) | ||
return artistFull.genres | ||
@@ -108,19 +108,19 @@ }, | ||
genres: async (object) => { | ||
const AlbumFull = await AlbumLoader.load(object.id) | ||
const AlbumFull = await AlbumsLoader.load(object.id) | ||
return AlbumFull.genres | ||
}, | ||
label: async (object) => { | ||
const AlbumFull = await AlbumLoader.load(object.id) | ||
const AlbumFull = await AlbumsLoader.load(object.id) | ||
return AlbumFull.label | ||
}, | ||
popularity: async (object) => { | ||
const AlbumFull = await AlbumLoader.load(object.id) | ||
const AlbumFull = await AlbumsLoader.load(object.id) | ||
return AlbumFull.popularity | ||
}, | ||
release_date: async (object) => { | ||
const { release_date } = await AlbumLoader.load(object.id) | ||
const { release_date } = await AlbumsLoader.load(object.id) | ||
return release_date | ||
}, | ||
release_date_precision: async (object) => { | ||
const { release_date_precision } = await AlbumLoader.load(object.id) | ||
const { release_date_precision } = await AlbumsLoader.load(object.id) | ||
return release_date_precision | ||
@@ -127,0 +127,0 @@ } |
@@ -129,3 +129,3 @@ import 'isomorphic-fetch' | ||
PlaylistLoader : makePlaylistLoader(token), | ||
PlaylistTracksLoader: makePlaylistLoader(token), | ||
PlaylistTracksLoader: makePlaylistTracksLoader(token), | ||
AlbumsLoader: makeAlbumsLoader(token), | ||
@@ -132,0 +132,0 @@ ArtistsLoader: makeArtistsLoader(token), |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80696