Skip to content
BigBoxCode
  • Home
  • Fundamental
    • Design Patterns
    • Design Principles
    • Data Structures
  • Programming
    • JavaScript Programming
    • Laravel Framework
    • Server-Sent Events(SSE)
    • Python Programming
    • PHP Programming
  • Database
    • MySQL
    • Redis
    • MongoDB
  • DevOps
    • Linux Fundamentals
    • Linux Commands
    • Docker
  • All Tutorials

MongoDB Read Method

MongoDB Method: db.collection.findOne()

July 8, 2024February 3, 2024 by BigBoxCode

Find the first document in a specific collection or view, that matches the provided filter. We get a single document that fulfills the criteria. If the provided criteria match multiple documents in the collection/view, then this command returns the first document.

Categories MongoDB Tags MongoDB Method, MongoDB Read Method Leave a comment

MongoDB Method: db.collection.find()

July 8, 2024January 18, 2024 by BigBoxCode

Find documents in a specific collection or a view. We can retrieve multiple documents from a collection(or view), based on some filters. This command returns a cursor, we can iterate over the items using the cursor.

Categories MongoDB Tags MongoDB Method, MongoDB Read Method Leave a comment
  • Tutorials
  • Design Patterns [classic/core patterns for OOP]
  • Design Principles
  • Data Structures
  • Server-Sent Events(SSE)
  • MySQL Tutorials
  • Redis Tutorials
  • MongoDB Tutorials
  • JavaScript Programming
  • PHP Programming
  • Laravel Framework
  • Python Programming

Sponsors

  • About
  • Contact
  • Privacy Policy
  • Disclaimer
  • All Tutorials
  • Sitemap
  • Resources
  • RSS Feed
  • GitHub
  • Linkedin
  • Youtube
© 2025 BigBoxCode