The QueryOperators operator allows us to write complex query conditions, making the process more flexible. The field word used in the official document, which is the meaning of the field in RDBMS, but MongoDB is used as the document database, and the BSON format is used as the data storage format. Field corresponds to the key. Here I will translate it into a field instead of a key. If
Query Operators allows us to write complex Query conditions, making the process more flexible. The field word used in the official document, which is the meaning of the field in RDBMS, but MongoDB is used as the document database, and the BSON format is used as the data storage format. Field corresponds to the key. Here I will translate it into a field instead of a key. If
Query Operators allows us to write complex Query conditions, making the process more flexible.
The word "field" used in the official documents indicates the field in RDBMS, but MongoDB is used as the document database, the U.S. server, and the BSON format used as the data storage format. Field corresponds to the key, U.S. space, and Hong Kong server. I will translate it into "field" instead of "key" here ". If any, please point out.
Demo data:
We will perform the following operations. Insert three pieces of data to the Collection inventory first. The content of this document is as follows:
{"Name": "t1", "amount": 16, "tags": ["school", "book", "bag", "headphone ", "appliances"]}
{"Name": "t2", "amount": 50, "tags": ["appliances", "school", "book"]}
{"Name": "t3", "amount": 58, "tags": ["bag", "school", "book"]}