Help with .eq Coding adding Category Id's

Can someone help me figure out how to code the category_id into this equation correctly?

I have an equation to help me filter the items within my collection that I am displaying on a repeater. I have found the category_id of every item in my collection (See screenshot). How do I correctly write the code in order to insert the multiple category_id’s? Or is there an overall collection ID that I am supposed to be using?

This is the portion of the code where I need to insert the ID.
wixData.query( “Recipes” )
.eq( “categories” , " Category_Id " )

Thank you in advance for any help you can provide!!

First of all it should not be - ‘Category_Id’
Correction →
_id

For query, which field you are trying to query ???

wixData.query( “Recipes” )
.eq( “categories” , " Category_Id " )

??

Thank you foe your reply. I apologize as I do not know anything about coding aside the little I have learned trying to do this.

I am trying to filter a repeater showing a Recipies collection. I have a reference field in the Recipe collection that points to a Dropdown List collection (the screenshot above). These are the categories I’m trying to filter by.

I was told by someone else that I should put the category_id in the .eq equation. If that is not correct can you please tell me how to get this code to work correctly?

This is my current code:

import wixData from ‘wix-data’ ; $w.onReady( function () { }); let selectedCategories = “” ; export function dropdown1_change(event) { wixData.query( “DropdownList” ) .eq( “title” , $w( " #dropdown1 " ).value) .find() .then( (results) => { let firstItem = results.items[ 0 ]; //First Item in results selectedCategories = firstItem._Id; wixData.query( “Recipes” ) .eq( “categories” , selectedCategories) .find() .then( (results) => { $w( " #repeater1 " ).data = results.items; $w( " #pageTitleText " ).text = "Recipes - " + $w( " #dropdown1 " ).value; }) . catch ( (err) => { let errorMsg=err; }); }); } export function clearButton_click(event, $w) { // Reload all items when clear button clicked wixData.query ( “Recipes” ) .find() .then( (results) => { $w( " #repeater1 " ).data = results.items; $w( " #pageTitleText " ).text = “Recipes - All” ; }) . catch ( (err) => { let errorMsg = err; }); }