@@ -5,14 +5,14 @@ Documents
5
5
6
6
**Documents ** in python-arango are Python dictionaries. They can be nested to
7
7
an arbitrary depth and contain lists. Each document must have the ``"_key" ``
8
- field, whose value identifies the document uniquely within a given collection.
9
- There is also the ``"_id" `` field, whose value identifies the document uniquely
10
- across *all * collections within a given database.
8
+ field, whose value identifies the document uniquely within a collection. There
9
+ is also the ``"_id" `` field, whose value identifies the document uniquely across
10
+ *all * collections within a database.
11
11
12
12
ArangoDB supports MVCC (Multiple Version Concurrency Control) and is capable
13
- of storing each document in multiple revisions. The revision of a document can
14
- be distinguished by the value of the ``"_rev" `` field. For more information on
15
- document basics and terminologies visit this
13
+ of storing each document in multiple revisions. The revision of a document is
14
+ distinguished by the value of the ``"_rev" `` field. For more information on
15
+ documents and their associated terminologies visit this
16
16
`page <https://docs.arangodb.com/HTTP/Document/AddressAndEtag.html >`__.
17
17
18
18
Here is an example of a valid document:
@@ -28,7 +28,7 @@ Here is an example of a valid document:
28
28
' address' : {
29
29
' city' : ' Gotham' ,
30
30
' zip' : ' M1NS93' ,
31
- ' street' : ' 300 Beverly St.' ,
31
+ ' street' : ' 300 Beverly St.'
32
32
},
33
33
' courses' : [' CSC101' , ' STA101' ]
34
34
}
@@ -37,7 +37,7 @@ Here is an example of a valid document:
37
37
38
38
**Edge documents ** or **edges ** are similar to documents but with additional
39
39
required fields ``"_from" `` and ``"_to" ``. The values of these fields are the
40
- values of the ``"_id" `` field in the "from" and "to" vertex documents (see
40
+ values of the ``"_id" `` field of the "from" and "to" vertex documents (see
41
41
:ref: `graphs <graph-page >` for more details). Edge documents are contained in
42
42
:ref: `edge collections <edge-collections >`.
43
43
@@ -52,7 +52,7 @@ Here is an example of a valid edge document:
52
52
' _from' : ' students/john' ,
53
53
' _to' : ' students/jane' ,
54
54
' friends' : True ,
55
- ' closeness ' : 10
55
+ ' family ' : False
56
56
}
57
57
58
58
0 commit comments