Exercise: Search Genre by Name
Practice searching a document in MongoDB using Go API.
We'll cover the following
Problem statement
Searching a document is a critical operation in a MongoDB project. This exercise tests your knowledge of searching a document in the collection based on a specific attribute.
Task
For this exercise, you need to search a genre by its name
. To perform this task, you need to write the required code in the SearchByName()
function in the genreController.go
file.
Get hands-on with 1400+ tech skills courses.