Alibabacloud.com offers a wide variety of articles about convert json to bson javascript, easily find your convert json to bson javascript information here online.
By convention, I will first introduce what is BSon. BSon is short for BinaryJSON and is a binary storage format of a type of Json. Currently, Bson is mainly used by MongoDB (an open-source database with a popular non-Relational Data Model) to store
JSON (JavaScript Object Notation) is a lightweight data exchange format. Simply put, JSON can convert a set of data represented in a JavaScript object to a string, and then it can be easily passed between functions, alternatively, the string is
MongodbConceptual AnalysisNo matter what database we learn, we should learn the basic concepts, the basic concept in MongoDB is a document, a collection, a database, we introduce each one.The following table will help you understand some of the
MongoDB (BSON) Data Type
In addition to the basic JSON types: string, integer, boolean, double, null, array, and object, mongo also uses special data types. These types include date, object id, binary data, regular expression, and code. Each driver
Client Support for MongoDB
As a very mature NoSQL database, MONGDB support for a variety of programming languages has been very perfect, and now support the major mainstream programming languages include:1,mongo Shell2,python3,java4,c#5,node.js6,c++
VI. Data Model Reference documentationWe already know that MongoDB stores data as documents, and the document is a JSON-style data structure consisting of a series of "Field name-value" pairs, as shown below{"Item": "Pencil", "Qty": $, "type": "No.2"
MongoDB Documents use Bson (Binary JSON) to organize data, bson similar to Json,json is simply a way of representing data, containing only 6 data types (NULL, Boolean, number, string, array, and object). Does not fully meet the needs of complex
Synchronous vs. asynchronous
Synchronous and asynchronous attention is to the message communication mechanism (synchronous communication/asynchronous communication)The so-called synchronization is that when a call is made, the call does not
The following table is a few of the data types commonly used in MongoDB.
Data Type
Description
String
String. Data types commonly used to store data. In MongoDB, the UTF-8 encoded string is legal.
I. Basic Concepts 1. Document: MongoDB is a Document-based NoSQL database. A document is the basic unit of data in MongoDB and is very similar to rows in relational databases (more complex than rows ). A document consists of multiple key pairs that
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.