Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Build Applications with Meteor

You're reading from   Build Applications with Meteor Isomorphic JavaScript web development

Arrow left icon
Product type Paperback
Published in May 2017
Publisher Packt
ISBN-13 9781787129887
Length 388 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Dobrin Ganev Dobrin Ganev
Author Profile Icon Dobrin Ganev
Dobrin Ganev
Arrow right icon
View More author details
Toc

Importing the data

They are many ways of importing existing data into MongoDB. It depends on many factors, but the two most important ones are the source and data model. Our data sample is in JSON format, which is the format of the documents stored in MongoDB collections. The way MongoDB works is that behind the scenes, it encodes the JSON documents in a binary format—BSON (Binary JSON)—with some additional metadata, and when we query the collections, we get plain JSON objects. JSON is what we, JavaScript developers, naturally think of data that makes MongoDB extremely easy to work with; this is also the main reason why it is one of the most popular NoSQL databases.

How we model our collections is completely different from how we'd model our tables in a relational database. Data modeling in MongoDB is a big topic and it's out of the scope of this book; however, we...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime