-
JSON - Wikipedia, the free encyclopedia
-
- Number (double precision floating-point format in JavaScript, generally depends on implementation)
- String (double-quoted Unicode, with backslash escaping)
- Boolean (
true
orfalse
) - Array (an ordered sequence of values, comma-separated and enclosed in square brackets; the values do not need to be of the same type)
- Object (an unordered collection of key:value pairs with the ':' character separating the key and the value, comma-separated and enclosed in curly braces; the keys must be strings and should be distinct from each other)
null
(empty)
JSON's basic types are:
-
-
Getting Started with the mongo Shell
-
Use an External Editor in the mongo Shell¶
New in version 2.2.
In the mongo shell you can use the edit operation to edit a function or variable in an external editor. The edit operation uses the value of your environments EDITOR variable.
At your system prompt you can define the EDITOR variable and start mongo with the following two operations:
export EDITOR=vim mongo
Then, consider the following example shell session:
MongoDB shell version: 2.2.0 > function f() {} > edit f > f function f() { print("this really works"); } > f() this really works > o = {} { } > edit o > o { "soDoes" : "this" } >
-
2013/07/21
Publish public bookmark 07/21/2013
2013/07/20
Publish public bookmark 07/20/2013
-
SQL to Aggregation Framework Mapping Chart
- The aggregation framework allows MongoDB to provide native aggregation capabilities that corresponds to many common data aggregation operations in SQL.
- The MongoDB statements prefix the names of the fields from the documents in the collection orders with a $ character when they appear as operands to the aggregation operations.
-
Subscribe to:
Posts (Atom)