Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Databases Mongo Basics Getting Started With MongoDB Getting Started With MongoDB

Erik L
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Erik L
Full Stack JavaScript Techdegree Graduate 19,470 Points

What is the difference between sequelize and mongoDB, SQL vs NOSQL?

So I am beginning to learn about MongoDB and I wanted to learn what the differences are between them

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Erik;

Great question!

Sequelize is an ORM (Object-Relational Mapping) package for Node.js that works with a variety of SQL based databases such as Postgres, MySQL, SQLite, and a few others.

SQL is a query language used for querying and interacting with a variety of databases.

NoSQL is sort of an umbrella term for any database that doesn't use SQL for querying the database. Most frequently it's used to describe databases that don't rely on the legacy, tabular data format that SQL databases do.

MongoDB is a document database that has its own query language and stores data in, more or less, JSON. It is a cross-platform, modern database that falls into the NoSQL classification.

I hope that helps somewhat but post back if you have any further questions.

Ken

Erik L
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Erik L
Full Stack JavaScript Techdegree Graduate 19,470 Points

I see, thanks for the feedback, now I have a better understanding about the differences between relational databases(sql) and nonrelational databases like MongoDB

Ken Alger
Ken Alger
Treehouse Teacher

Erik;

Just to be clear, the term "nonrelational database" is a bit misleading as all data does indeed have some relations built into it. NoSQL databases can definitely handle relations. Neo4j, as just one example, is a NoSQL graph database that handles LOTS of different relations between nodes.

Keep up the great work, and happy coding!

Ken