Coder Social home page Coder Social logo

dyrits / mongo-mongoose Goto Github PK

View Code? Open in Web Editor NEW

This project forked from freecodecamp/boilerplate-mongomongoose

0.0 0.0 0.0 49 KB

[freeCodeCamp - Back End Development and APIs] MongoDB and Mongoose

JavaScript 93.73% HTML 6.21% Shell 0.06%

mongo-mongoose's Introduction

MongoDB and Mongoose

MongoDB is a database application that stores JSON documents (or records) that you can use in your application. Unlike SQL, another type of database, Mongo is a non-relational or "NoSQL" database. This means Mongo stores all associated data within one record, instead of storing it across many preset tables as in a SQL database.

Mongoose is a popular npm package that is often installed alongside Mongo. With Mongoose, you can use plain JavaScript objects instead of JSON, which makes it easier to work with Mongo. Also, it allows you to create blueprints for your documents called schemas, so you don't accidentally save the wrong type of data and cause bugs later.

In the MongoDB and Mongoose courses, you'll learn the fundamentals of working with persistent data including how to set up a model, and save, delete, and find documents in the database.


This is the boilerplate for the MongoDB and Mongoose lessons. Instructions for completing these lessons start at https://www.freecodecamp.org/learn/apis-and-microservices/mongodb-and-mongoose/

  1. Install and Set Up Mongoose
  2. Create a Model
  3. Create and Save a Record of a Model
  4. Create Many Records with model.create()
  5. Use model.find() to Search Your Database
  6. Use model.findOne() to Return a Single Matching Document from Your Database
  7. Use model.findById() to Search Your Database By _id
  8. Perform Classic Updates by Running Find, Edit, then Save
  9. Perform New Updates on a Document Using model.findOneAndUpdate()
  10. Delete One Document Using model.findByIdAndRemove
  11. Delete Many Documents with model.remove()
  12. Chain Search Query Helpers to Narrow Search Results

mongo-mongoose's People

Contributors

dyrits avatar em-ant avatar mot01 avatar huyenltnguyen avatar amasad avatar jeremies avatar josephlivengood avatar totallycurious avatar randelldawson avatar shaunshamilton avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.