Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
How to display another field from firebase

So, this might be an easy question, but I am currently displaying food items from my firebase database with items that have corresponding "Category". I want to display all items that have a field in the database that have "All_Day_Special : true" in the "All Day Special" category on my website.

Here is my code so far.

const filterItems = items?.filter(item => {
        switch (activeCategory) {
          case 'all':
            return true
          case 'appetizers':
              break
          case 'addIns':
              break
          case 'beef':
          case 'chicken':
          case 'chowMein':
          case 'combinations':
          case 'deepFriedGoodiness':
          case 'dessert':
          case 'flavor':
          case 'friedRice':
          case 'hot':
          case 'pork':
          case 'seafoodPlatter':
          case 'sides':
          case 'vegetable':
          case 'whatsCooking':
          case 'wing':
                return item.category === activeCategory
            default:
                return true
        }
    });

Here is how my database is formatted. Firebase DB

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!