Easy javascript

Find employees in Engineering

Problem

Write a MongoDB query for documents where department: "Engineering".

Hints
  • find({ department: "Engineering" })

Your practice code

Ready — edit the code above and click Run.

Solution

db.employees.find({ department: "Engineering" });

Try solving on your own first, then reveal the official answer.

Explanation

Filter documents with JSON-style query object—similar to JavaScript objects.

Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details