I don't understand my mistake in the Ticket: Text and Subfield Search task

Hi,
I’m Doing the Ticket: Text and Subfield Search Lesson
and I can’t find where my mistake is, if someone could give me a hand I’d be grateful

This is my code

static async genreSearchQuery(genre) {
/**
Ticket: Text and Subfield Search

    Given an array of one or more genres, construct a query that searches
    MongoDB for movies with that genre.
    */
    const searchGenre = Array.isArray(genre) ? genre : genre.split(", ")
        // TODO Ticket: Text and Subfield Search
        // Construct a query that will search for the chosen genre.
    const query = { genres: { $in: searchGenre } }
    const project = {}
    const sort = DEFAULT_SORT

    return { query, project, sort }
}

I looked inside the test code and found that there we have something like
{genre: ["Action"]}

but in the db, would it be genres and not just genre, or am I confusing things?

This is a parameter in getMovies function in moviesDAO.js file. And genres is the fieldname in the database.

Kanika