Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getMovieLoaders(movieId) {
return {
movie: Loads.preload('movie', api.getMovie, { variables: [movieId] }),
reviews: Loads.preload('movieReviews', api.getReviewsByMovieId, { variables: [movieId] })
};
}
function getMovieLoaders(movieId) {
return {
movie: Loads.preload('movie', api.getMovie, { variables: [movieId] }),
reviews: Loads.preload('movieReviews', api.getReviewsByMovieId, { variables: [movieId] })
};
}