SongModule is now correctly defined and GraphQLModule is loaded in the NestJS application's app module. We are ready to give the API a try.
Execute the following command to start the backend server (if you haven't done so already):
yarn start:dev
Now, open up your web browser and go to http://localhost:4000/graphql.
You should see the following:
This is the playground that we enabled a bit earlier. You can learn more about it here: https://github.com/prisma/graphql-playground.
Through the playground, we can easily write and test queries. Given that our API is already functional (albeit limited), we can already write our first GraphQL query together.
Remove everything on the left-hand pane, then type in the following query:
{ songs(value: "never gonna give you up") { id, name, ...