We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Endpoint to be used to retrieve all the songs in the songs collection. Return the song name, id, and a list of the names of the artists
Set this as the GET endpoint at the route /song
Make a new route /song and make it in a new file @aurgy/server/www/song.ts
@aurgy/server/www/song.ts
Use the Song.all() function to get all the songs and then filter the result to only return the data we want
We want to return an array of song objects that only contain the name, id, and a list of the artists.
It would look something like:
[ { name: 'Never gonna give you up', id: '0jRtIxbK0KxaSlJW13ZOp', artists: [ 'Rick Astley'], }, { name: 'STAY (with Justin Bieber)', id: 'R3W0jRkwqbK0KxaKWnJA43ZYm', artists: [ 'The Kid LAROI', 'Justin Bieber', ], ... ]
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered:
I'll take this one!
Sorry, something went wrong.
aparnahrn
Successfully merging a pull request may close this issue.
Endpoint to be used to retrieve all the songs in the songs collection. Return the song name, id, and a list of the names of the artists
Use Case
Set this as the GET endpoint at the route /song
Proposed Solution
Make a new route /song and make it in a new file
@aurgy/server/www/song.ts
Use the Song.all() function to get all the songs and then filter the result to only return the data we want
We want to return an array of song objects that only contain the name, id, and a list of the artists.
It would look something like:
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: