mirror of https://gitee.com/bigwinds/arangodb
fresh examples (#4101)
This commit is contained in:
parent
315a827da8
commit
7a9bf83561
|
@ -1,63 +1,63 @@
|
|||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"one"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/103"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"103"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgPS---"</span>
|
||||
}
|
||||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"two"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/107"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"107"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgPW---"</span>
|
||||
}
|
||||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"three"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/110"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"110"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgPW--_"</span>
|
||||
}
|
||||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"four"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/113"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"113"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgPa---"</span>
|
||||
}
|
||||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"five"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/116"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"116"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgPa--_"</span>
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsVG--_"</span>
|
||||
}
|
||||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"two"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/120"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"120"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsVO--_"</span>
|
||||
}
|
||||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"three"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/123"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"123"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsVS--_"</span>
|
||||
}
|
||||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"four"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/126"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"126"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsVW--_"</span>
|
||||
}
|
||||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"five"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/129"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"129"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsVa--_"</span>
|
||||
}
|
||||
arangosh> db.five.all().toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"107"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/107"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgPW---"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"two"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"116"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/116"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgPa--_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"five"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"113"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/113"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgPa---"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"four"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"103"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/103"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgPS---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsVG--_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"one"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"110"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/110"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgPW--_"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"126"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/126"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsVW--_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"four"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"120"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/120"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsVO--_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"two"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"129"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/129"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsVa--_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"five"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"123"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/123"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsVS--_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"three"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,45 +1,45 @@
|
|||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"one"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/126"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"126"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgVC---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/141"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"141"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Use6--_"</span>
|
||||
}
|
||||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"two"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/130"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"130"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgVG---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/145"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"145"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Usf---_"</span>
|
||||
}
|
||||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"three"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/133"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"133"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgVG--_"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/148"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"148"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsfC--_"</span>
|
||||
}
|
||||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"four"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/136"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"136"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgVG--A"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/151"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"151"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsfC--B"</span>
|
||||
}
|
||||
arangosh> db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"five"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/139"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"139"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgVG--B"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/154"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"154"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsfG--_"</span>
|
||||
}
|
||||
arangosh> db.five.all().limit(<span class="hljs-number">2</span>).toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"139"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/139"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgVG--B"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"five"</span>
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"141"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/141"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Use6--_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"one"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"136"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/136"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgVG--A"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"151"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/151"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UsfC--B"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"four"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,40 +1,40 @@
|
|||
arangosh> db.users.save({ <span class="hljs-attr">name</span>: <span class="hljs-string">"Gerhard"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/149"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"149"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgbW---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/165"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"165"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Usl---_"</span>
|
||||
}
|
||||
arangosh> db.users.save({ <span class="hljs-attr">name</span>: <span class="hljs-string">"Helmut"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/153"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"153"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgbW--_"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/169"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"169"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UslC--_"</span>
|
||||
}
|
||||
arangosh> db.users.save({ <span class="hljs-attr">name</span>: <span class="hljs-string">"Angela"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/156"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"156"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgbW--A"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/172"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"172"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UslC--B"</span>
|
||||
}
|
||||
arangosh> db.users.all().toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"149"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/149"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgbW---"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"165"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/165"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Usl---_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Gerhard"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"156"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/156"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgbW--A"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Angela"</span>
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"169"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/169"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UslC--_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Helmut"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"153"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/153"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgbW--_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Helmut"</span>
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"172"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/172"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UslC--B"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Angela"</span>
|
||||
}
|
||||
]
|
||||
arangosh> db.users.byExample({ <span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/20"</span> }).toArray();
|
||||
|
@ -42,9 +42,9 @@ arangosh> db.users.byExample({ <span class="hljs-string">"_id"</span> : <span
|
|||
arangosh> db.users.byExample({ <span class="hljs-string">"name"</span> : <span class="hljs-string">"Gerhard"</span> }).toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"149"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/149"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgbW---"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"165"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/165"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Usl---_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Gerhard"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,26 +1,26 @@
|
|||
arangosh> db.users.save({ <span class="hljs-attr">name</span>: <span class="hljs-string">"Gerhard"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/172"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"172"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgiK---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/189"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"189"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Usry--_"</span>
|
||||
}
|
||||
arangosh> db.users.save({ <span class="hljs-attr">name</span>: <span class="hljs-string">"Helmut"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/176"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"176"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgiK--_"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/193"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"193"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Usry--B"</span>
|
||||
}
|
||||
arangosh> db.users.save({ <span class="hljs-attr">name</span>: <span class="hljs-string">"Angela"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/179"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"179"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgiK--A"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/196"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"196"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Usr2--_"</span>
|
||||
}
|
||||
arangosh> <span class="hljs-keyword">var</span> a = db.users.byExample( {<span class="hljs-string">"name"</span> : <span class="hljs-string">"Angela"</span> } );
|
||||
arangosh> <span class="hljs-keyword">while</span> (a.hasNext()) print(a.next());
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"179"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/179"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgiK--A"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"196"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/196"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Usr2--_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Angela"</span>
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ arangosh> db.old.ensureIndex({ <span class="hljs-attr">type</span>: <span cla
|
|||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"age"</span>
|
||||
],
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"old/190"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"old/208"</span>,
|
||||
<span class="hljs-string">"isNewlyCreated"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"sparse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
|
@ -13,34 +13,34 @@ arangosh> db.old.ensureIndex({ <span class="hljs-attr">type</span>: <span cla
|
|||
}
|
||||
arangosh> db.old.save({ <span class="hljs-attr">age</span>: <span class="hljs-number">15</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/193"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"193"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgsm---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/211"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"211"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Us4S--_"</span>
|
||||
}
|
||||
arangosh> db.old.save({ <span class="hljs-attr">age</span>: <span class="hljs-number">25</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/197"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"197"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgsm--_"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/215"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"215"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Us4W--_"</span>
|
||||
}
|
||||
arangosh> db.old.save({ <span class="hljs-attr">age</span>: <span class="hljs-number">30</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/200"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"200"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgsq---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/218"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"218"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Us4a--_"</span>
|
||||
}
|
||||
arangosh> db.old.range(<span class="hljs-string">"age"</span>, <span class="hljs-number">10</span>, <span class="hljs-number">30</span>).toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"193"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/193"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgsm---"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"211"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/211"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Us4S--_"</span>,
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">15</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"197"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/197"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQgsm--_"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"215"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/215"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Us4W--_"</span>,
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">25</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -4,7 +4,7 @@ arangosh> db.old.ensureIndex({ <span class="hljs-attr">type</span>: <span cla
|
|||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"age"</span>
|
||||
],
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"old/211"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"old/230"</span>,
|
||||
<span class="hljs-string">"isNewlyCreated"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"sparse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
|
@ -13,40 +13,40 @@ arangosh> db.old.ensureIndex({ <span class="hljs-attr">type</span>: <span cla
|
|||
}
|
||||
arangosh> db.old.save({ <span class="hljs-attr">age</span>: <span class="hljs-number">15</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/214"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"214"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQg3m---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/233"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"233"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UtDy--_"</span>
|
||||
}
|
||||
arangosh> db.old.save({ <span class="hljs-attr">age</span>: <span class="hljs-number">25</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/218"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"218"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQg3m--_"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/237"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"237"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UtD2--_"</span>
|
||||
}
|
||||
arangosh> db.old.save({ <span class="hljs-attr">age</span>: <span class="hljs-number">30</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/221"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"221"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQg3m--A"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/240"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"240"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UtD6--_"</span>
|
||||
}
|
||||
arangosh> db.old.closedRange(<span class="hljs-string">"age"</span>, <span class="hljs-number">10</span>, <span class="hljs-number">30</span>).toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"214"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/214"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQg3m---"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"233"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/233"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UtDy--_"</span>,
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">15</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"218"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/218"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQg3m--_"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"237"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/237"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UtD2--_"</span>,
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">25</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"221"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/221"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQg3m--A"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"240"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/240"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UtD6--_"</span>,
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">30</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -5,7 +5,7 @@ arangosh> db.geo.ensureIndex({ <span class="hljs-attr">type</span>: <span cla
|
|||
<span class="hljs-string">"loc"</span>
|
||||
],
|
||||
<span class="hljs-string">"geoJson"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"geo/232"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"geo/252"</span>,
|
||||
<span class="hljs-string">"ignoreNull"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"isNewlyCreated"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"sparse"</span> : <span class="hljs-literal">true</span>,
|
||||
|
@ -22,9 +22,9 @@ arangosh> <span class="hljs-keyword">for</span> (<span class="hljs-keyword">v
|
|||
arangosh> db.geo.near(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>).limit(<span class="hljs-number">2</span>).toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"1289"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/1289"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQhFa--C"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"1309"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/1309"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UtWm--D"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Name/0/0"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">0</span>,
|
||||
|
@ -32,9 +32,9 @@ arangosh> db.geo.near(<span class="hljs-number">0</span>, <span class="hljs-n
|
|||
]
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"1178"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/1178"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQhFG--E"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"1198"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/1198"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UtWC--_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Name/-10/0"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">-10</span>,
|
||||
|
|
|
@ -5,7 +5,7 @@ arangosh> db.geo.ensureIndex({ <span class="hljs-attr">type</span>: <span cla
|
|||
<span class="hljs-string">"loc"</span>
|
||||
],
|
||||
<span class="hljs-string">"geoJson"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"geo/2355"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"geo/2376"</span>,
|
||||
<span class="hljs-string">"ignoreNull"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"isNewlyCreated"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"sparse"</span> : <span class="hljs-literal">true</span>,
|
||||
|
@ -23,9 +23,9 @@ arangosh> db.geo.near(<span class="hljs-number">0</span>, <span class="hljs-n
|
|||
[
|
||||
{
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/3412"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3412"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQhWC--C"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/3433"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3433"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Utt2--_"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">0</span>
|
||||
|
@ -34,9 +34,9 @@ arangosh> db.geo.near(<span class="hljs-number">0</span>, <span class="hljs-n
|
|||
},
|
||||
{
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/3301"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3301"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQhVy---"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/3322"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3322"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UttS--F"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">-10</span>,
|
||||
<span class="hljs-number">0</span>
|
||||
|
|
|
@ -5,9 +5,9 @@ arangosh> db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
|
|||
[
|
||||
{
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5535"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5535"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQhwO--E"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5557"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5557"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UuDy--D"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">0</span>
|
||||
|
@ -16,9 +16,9 @@ arangosh> db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
|
|||
},
|
||||
{
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5424"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5424"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQhw----"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5446"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5446"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UuDS--_"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">-10</span>,
|
||||
<span class="hljs-number">0</span>
|
||||
|
@ -27,9 +27,9 @@ arangosh> db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
|
|||
},
|
||||
{
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5538"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5538"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQhwO--F"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5560"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5560"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UuDy--F"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">10</span>
|
||||
|
@ -38,9 +38,9 @@ arangosh> db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
|
|||
},
|
||||
{
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5646"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5646"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQhwi--C"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5668"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5668"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UuES--D"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">10</span>,
|
||||
<span class="hljs-number">0</span>
|
||||
|
@ -49,9 +49,9 @@ arangosh> db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
|
|||
},
|
||||
{
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5532"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5532"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQhwO--D"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5554"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5554"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UuDy--B"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">-10</span>
|
||||
|
@ -60,9 +60,9 @@ arangosh> db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
|
|||
},
|
||||
{
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1568520.556798576</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5427"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5427"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQhw---_"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5449"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5449"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UuDS--B"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">-10</span>,
|
||||
<span class="hljs-number">10</span>
|
||||
|
@ -71,9 +71,9 @@ arangosh> db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
|
|||
},
|
||||
{
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1568520.556798576</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5649"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5649"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQhwi--D"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5671"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5671"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UuES--F"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">10</span>,
|
||||
<span class="hljs-number">10</span>
|
||||
|
@ -82,9 +82,9 @@ arangosh> db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
|
|||
},
|
||||
{
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1568520.556798576</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5421"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5421"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQhv6--G"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5443"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5443"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UuDO--F"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">-10</span>,
|
||||
<span class="hljs-number">-10</span>
|
||||
|
@ -93,9 +93,9 @@ arangosh> db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
|
|||
},
|
||||
{
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1568520.556798576</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5643"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5643"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQhwi--B"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5665"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5665"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UuES--B"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">10</span>,
|
||||
<span class="hljs-number">-10</span>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
arangosh> db.example.save({ <span class="hljs-attr">Hello</span> : <span class="hljs-string">"world"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/6616"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"6616"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQiAS---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/6640"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"6640"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UuW2--_"</span>
|
||||
}
|
||||
arangosh> db.example.replaceByExample({ <span class="hljs-attr">Hello</span>: <span class="hljs-string">"world"</span> }, {<span class="hljs-attr">Hello</span>: <span class="hljs-string">"mars"</span>}, <span class="hljs-literal">false</span>, <span class="hljs-number">5</span>);
|
||||
<span class="hljs-number">1</span>
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
arangosh> db.example.save({ <span class="hljs-attr">Hello</span> : <span class="hljs-string">"world"</span>, <span class="hljs-attr">foo</span> : <span class="hljs-string">"bar"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/6631"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"6631"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQiFC---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/6656"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"6656"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UubC--_"</span>
|
||||
}
|
||||
arangosh> db.example.updateByExample({ <span class="hljs-attr">Hello</span>: <span class="hljs-string">"world"</span> }, { <span class="hljs-attr">Hello</span>: <span class="hljs-string">"foo"</span>, <span class="hljs-attr">World</span>: <span class="hljs-string">"bar"</span> }, <span class="hljs-literal">false</span>);
|
||||
<span class="hljs-number">1</span>
|
||||
arangosh> db.example.byExample({ <span class="hljs-attr">Hello</span>: <span class="hljs-string">"foo"</span> }).toArray()
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"6631"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/6631"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQiFC--A"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"6656"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/6656"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UubO--_"</span>,
|
||||
<span class="hljs-string">"Hello"</span> : <span class="hljs-string">"foo"</span>,
|
||||
<span class="hljs-string">"foo"</span> : <span class="hljs-string">"bar"</span>,
|
||||
<span class="hljs-string">"World"</span> : <span class="hljs-string">"bar"</span>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
arangosh> db._create(<span class="hljs-string">"mycollection"</span>)
|
||||
[ArangoCollection <span class="hljs-number">6645</span>, <span class="hljs-string">"mycollection"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">6670</span>, <span class="hljs-string">"mycollection"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
arangosh> db.mycollection.save({ <span class="hljs-attr">_key</span>: <span class="hljs-string">"testKey"</span>, <span class="hljs-attr">Hello</span> : <span class="hljs-string">"World"</span> })
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"mycollection/testKey"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"testKey"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQiLW---"</span>
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uuh6--_"</span>
|
||||
}
|
||||
arangosh> db._query(<span class="hljs-string">'FOR my IN mycollection RETURN my._key'</span>).toArray()
|
||||
[
|
||||
|
|
|
@ -5,7 +5,7 @@ arangosh> db._query(aql<span class="hljs-string">`FOR doc IN <span class="hlj
|
|||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"testKey"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"mycollection/testKey"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQiLW---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uuh6--_"</span>,
|
||||
<span class="hljs-string">"Hello"</span> : <span class="hljs-string">"World"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -10,7 +10,7 @@ arangosh> db._query(<span class="hljs-string">`FOR i IN 1..100
|
|||
<span class="hljs-string">"scannedIndex"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"filtered"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"httpRequests"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0006852149963378906</span>
|
||||
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0015168190002441406</span>
|
||||
},
|
||||
<span class="hljs-string">"warnings"</span> : [ ]
|
||||
}
|
||||
|
|
|
@ -8,17 +8,17 @@ arangosh> c.getExtra();
|
|||
<span class="hljs-string">"scannedIndex"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"filtered"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"httpRequests"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.00007414817810058594</span>
|
||||
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.00014400482177734375</span>
|
||||
},
|
||||
<span class="hljs-string">"profile"</span> : {
|
||||
<span class="hljs-string">"initializing"</span> : <span class="hljs-number">0.0000016689300537109375</span>,
|
||||
<span class="hljs-string">"parsing"</span> : <span class="hljs-number">0.000011920928955078125</span>,
|
||||
<span class="hljs-string">"optimizing ast"</span> : <span class="hljs-number">0.0000021457672119140625</span>,
|
||||
<span class="hljs-string">"loading collections"</span> : <span class="hljs-number">0.0000021457672119140625</span>,
|
||||
<span class="hljs-string">"instantiating plan"</span> : <span class="hljs-number">0.000007152557373046875</span>,
|
||||
<span class="hljs-string">"optimizing plan"</span> : <span class="hljs-number">0.00002002716064453125</span>,
|
||||
<span class="hljs-string">"executing"</span> : <span class="hljs-number">0.000017404556274414062</span>,
|
||||
<span class="hljs-string">"finalizing"</span> : <span class="hljs-number">0.00000667572021484375</span>
|
||||
<span class="hljs-string">"initializing"</span> : <span class="hljs-number">0.000010013580322265625</span>,
|
||||
<span class="hljs-string">"parsing"</span> : <span class="hljs-number">0.000024557113647460938</span>,
|
||||
<span class="hljs-string">"optimizing ast"</span> : <span class="hljs-number">0.000003814697265625</span>,
|
||||
<span class="hljs-string">"loading collections"</span> : <span class="hljs-number">0.000003337860107421875</span>,
|
||||
<span class="hljs-string">"instantiating plan"</span> : <span class="hljs-number">0.00001239776611328125</span>,
|
||||
<span class="hljs-string">"optimizing plan"</span> : <span class="hljs-number">0.00003743171691894531</span>,
|
||||
<span class="hljs-string">"executing"</span> : <span class="hljs-number">0.000030279159545898438</span>,
|
||||
<span class="hljs-string">"finalizing"</span> : <span class="hljs-number">0.000013113021850585938</span>
|
||||
},
|
||||
<span class="hljs-string">"warnings"</span> : [ ]
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ arangosh> db._query(<span class="hljs-string">`
|
|||
<span class="hljs-string">"scannedIndex"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"filtered"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"httpRequests"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0006747245788574219</span>
|
||||
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0012900829315185547</span>
|
||||
},
|
||||
<span class="hljs-string">"warnings"</span> : [ ]
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ arangosh> db._query({
|
|||
<span class="hljs-string">"scannedIndex"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"filtered"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"httpRequests"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0006361007690429688</span>
|
||||
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0012674331665039062</span>
|
||||
},
|
||||
<span class="hljs-string">"warnings"</span> : [ ]
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ arangosh> stmt.explain();
|
|||
},
|
||||
<span class="hljs-string">"warnings"</span> : [ ],
|
||||
<span class="hljs-string">"stats"</span> : {
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">29</span>,
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">31</span>,
|
||||
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
|
||||
},
|
||||
|
|
|
@ -30,7 +30,7 @@ arangosh> stmt.explain();
|
|||
},
|
||||
<span class="hljs-string">"indexes"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"10"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"11"</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"hash"</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"user"</span>
|
||||
|
@ -114,7 +114,7 @@ arangosh> stmt.explain();
|
|||
},
|
||||
<span class="hljs-string">"warnings"</span> : [ ],
|
||||
<span class="hljs-string">"stats"</span> : {
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">29</span>,
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">31</span>,
|
||||
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
|
||||
},
|
||||
|
|
|
@ -112,8 +112,8 @@ arangosh> stmt.explain({ <span class="hljs-attr">optimizer</span>: {
|
|||
},
|
||||
<span class="hljs-string">"warnings"</span> : [ ],
|
||||
<span class="hljs-string">"stats"</span> : {
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">28</span>,
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">2</span>,
|
||||
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">29</span>,
|
||||
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
|
||||
},
|
||||
<span class="hljs-string">"cacheable"</span> : <span class="hljs-literal">true</span>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
arangosh> db._create("test");
|
||||
[ArangoCollection 6987, "test" (type document, status loaded)]
|
||||
[ArangoCollection 7013, "test" (type document, status loaded)]
|
||||
arangosh> for (i = 0; i < 100; ++i) { db.test.save({ value: i }); }
|
||||
arangosh> db.test.ensureIndex({ type: "skiplist", fields: [ "value" ] });
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ arangosh> db.test.ensureIndex({ type: "skiplist", fields: [ "value" ] });
|
|||
"fields" : [
|
||||
"value"
|
||||
],
|
||||
"id" : "test/7291",
|
||||
"id" : "test/7318",
|
||||
"isNewlyCreated" : true,
|
||||
"sparse" : false,
|
||||
"type" : "skiplist",
|
||||
|
|
|
@ -28,7 +28,7 @@ arangosh> stmt.explain();
|
|||
},
|
||||
<span class="hljs-string">"indexes"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7291"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7318"</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"value"</span>
|
||||
|
@ -152,7 +152,7 @@ arangosh> stmt.explain();
|
|||
},
|
||||
<span class="hljs-string">"warnings"</span> : [ ],
|
||||
<span class="hljs-string">"stats"</span> : {
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">29</span>,
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">31</span>,
|
||||
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
|
||||
},
|
||||
|
|
|
@ -27,7 +27,7 @@ arangosh> stmt.explain({ <span class="hljs-attr">allPlans</span>: <span class
|
|||
},
|
||||
<span class="hljs-string">"indexes"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7291"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7318"</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"value"</span>
|
||||
|
@ -152,7 +152,7 @@ arangosh> stmt.explain({ <span class="hljs-attr">allPlans</span>: <span class
|
|||
],
|
||||
<span class="hljs-string">"warnings"</span> : [ ],
|
||||
<span class="hljs-string">"stats"</span> : {
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">29</span>,
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">31</span>,
|
||||
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
|
||||
}
|
||||
|
|
|
@ -190,8 +190,8 @@ arangosh> stmt.explain({ <span class="hljs-attr">optimizer</span>: { <span cl
|
|||
},
|
||||
<span class="hljs-string">"warnings"</span> : [ ],
|
||||
<span class="hljs-string">"stats"</span> : {
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">29</span>,
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">30</span>,
|
||||
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
|
||||
},
|
||||
<span class="hljs-string">"cacheable"</span> : <span class="hljs-literal">true</span>
|
||||
|
|
|
@ -190,8 +190,8 @@ arangosh> stmt.explain({ <span class="hljs-attr">optimizer</span>: { <span cl
|
|||
},
|
||||
<span class="hljs-string">"warnings"</span> : [ ],
|
||||
<span class="hljs-string">"stats"</span> : {
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">29</span>,
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">30</span>,
|
||||
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
|
||||
},
|
||||
<span class="hljs-string">"cacheable"</span> : <span class="hljs-literal">true</span>
|
||||
|
|
|
@ -26,7 +26,7 @@ arangosh> stmt.explain({ <span class="hljs-attr">optimizer</span>: { <span cl
|
|||
},
|
||||
<span class="hljs-string">"indexes"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7291"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7318"</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"value"</span>
|
||||
|
@ -168,7 +168,7 @@ arangosh> stmt.explain({ <span class="hljs-attr">optimizer</span>: { <span cl
|
|||
},
|
||||
<span class="hljs-string">"warnings"</span> : [ ],
|
||||
<span class="hljs-string">"stats"</span> : {
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">28</span>,
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">30</span>,
|
||||
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
|
||||
},
|
||||
|
|
|
@ -26,7 +26,7 @@ arangosh> stmt.explain({ <span class="hljs-attr">maxNumberOfPlans</span>: <sp
|
|||
},
|
||||
<span class="hljs-string">"indexes"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7291"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7318"</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"value"</span>
|
||||
|
@ -150,7 +150,7 @@ arangosh> stmt.explain({ <span class="hljs-attr">maxNumberOfPlans</span>: <sp
|
|||
},
|
||||
<span class="hljs-string">"warnings"</span> : [ ],
|
||||
<span class="hljs-string">"stats"</span> : {
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">28</span>,
|
||||
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">30</span>,
|
||||
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
|
||||
},
|
||||
|
|
|
@ -10,7 +10,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Cologne"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"germanCity/Cologne"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj_2--_"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UvbO--B"</span>,
|
||||
<span class="hljs-string">"population"</span> : <span class="hljs-number">1000000</span>,
|
||||
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
|
@ -21,7 +21,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Hamburg"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"germanCity/Hamburg"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj_2--A"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UvbS--_"</span>,
|
||||
<span class="hljs-string">"population"</span> : <span class="hljs-number">1000000</span>,
|
||||
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
|
|
|
@ -14,7 +14,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-string">"traversedCity"</span> : {
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Lyon"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Lyon"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj_2--B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UvbS--B"</span>,
|
||||
<span class="hljs-string">"population"</span> : <span class="hljs-number">80000</span>,
|
||||
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
|
@ -28,7 +28,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-string">"traversedCity"</span> : {
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Paris"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Paris"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj_6---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UvbW--_"</span>,
|
||||
<span class="hljs-string">"population"</span> : <span class="hljs-number">4000000</span>,
|
||||
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
|
@ -42,7 +42,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-string">"traversedCity"</span> : {
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Paris"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Paris"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj_6---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UvbW--_"</span>,
|
||||
<span class="hljs-string">"population"</span> : <span class="hljs-number">4000000</span>,
|
||||
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
|
@ -56,7 +56,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-string">"traversedCity"</span> : {
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Lyon"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Lyon"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj_2--B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UvbS--B"</span>,
|
||||
<span class="hljs-string">"population"</span> : <span class="hljs-number">80000</span>,
|
||||
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
|
@ -70,7 +70,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-string">"traversedCity"</span> : {
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Cologne"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"germanCity/Cologne"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj_2--_"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UvbO--B"</span>,
|
||||
<span class="hljs-string">"population"</span> : <span class="hljs-number">1000000</span>,
|
||||
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
|
|
|
@ -15,7 +15,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Lyon"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Lyon"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj_2--B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UvbS--B"</span>,
|
||||
<span class="hljs-string">"population"</span> : <span class="hljs-number">80000</span>,
|
||||
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
|
@ -26,7 +26,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Paris"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Paris"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj_6---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UvbW--_"</span>,
|
||||
<span class="hljs-string">"population"</span> : <span class="hljs-number">4000000</span>,
|
||||
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
|
@ -42,7 +42,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Paris"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Paris"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj_6---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UvbW--_"</span>,
|
||||
<span class="hljs-string">"population"</span> : <span class="hljs-number">4000000</span>,
|
||||
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
|
@ -53,7 +53,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Lyon"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Lyon"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj_2--B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UvbS--B"</span>,
|
||||
<span class="hljs-string">"population"</span> : <span class="hljs-number">80000</span>,
|
||||
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
|
@ -64,7 +64,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Cologne"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"germanCity/Cologne"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj_2--_"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UvbO--B"</span>,
|
||||
<span class="hljs-string">"population"</span> : <span class="hljs-number">1000000</span>,
|
||||
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
arangosh> col = db.example;
|
||||
[ArangoCollection <span class="hljs-number">7432</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">7475</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
arangosh> col.unload();
|
||||
arangosh> col;
|
||||
[ArangoCollection <span class="hljs-number">7432</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status unloaded)]
|
||||
[ArangoCollection <span class="hljs-number">7475</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status unloaded)]
|
||||
|
|
|
@ -1,31 +1,31 @@
|
|||
arangosh> db._create(<span class="hljs-string">"vertex"</span>);
|
||||
[ArangoCollection <span class="hljs-number">7438</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">7482</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
arangosh> db._createEdgeCollection(<span class="hljs-string">"relation"</span>);
|
||||
[ArangoCollection <span class="hljs-number">7440</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">7485</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
arangosh> v1 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 1"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7443"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7443"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj5i---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7489"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7489"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UwJa--_"</span>
|
||||
}
|
||||
arangosh> v2 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 2"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7447"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7447"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj5m---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7493"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7493"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UwJe--_"</span>
|
||||
}
|
||||
arangosh> e1 = db.relation.insert(v1, v2, { <span class="hljs-attr">label</span> : <span class="hljs-string">"knows"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7450"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7450"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj5m--_"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7496"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7496"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UwJe--B"</span>
|
||||
}
|
||||
arangosh> db._document(e1);
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7450"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7450"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7443"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7447"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQj5m--_"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7496"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7496"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7489"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7493"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UwJe--B"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>
|
||||
}
|
||||
|
|
|
@ -1,34 +1,34 @@
|
|||
arangosh> db._create(<span class="hljs-string">"vertex"</span>);
|
||||
[ArangoCollection <span class="hljs-number">7462</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">7508</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
arangosh> db._createEdgeCollection(<span class="hljs-string">"relation"</span>);
|
||||
[ArangoCollection <span class="hljs-number">7464</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">7511</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
arangosh> <span class="hljs-keyword">var</span> myGraph = {};
|
||||
arangosh> myGraph.v1 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 1"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7467"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7467"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkFK---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7515"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7515"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UwVe--_"</span>
|
||||
}
|
||||
arangosh> myGraph.v2 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 2"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7471"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7471"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkFK--_"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7519"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7519"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UwVe--B"</span>
|
||||
}
|
||||
arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2,
|
||||
........> { <span class="hljs-attr">label</span> : <span class="hljs-string">"knows"</span>});
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7474"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7474"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkFK--A"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7522"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7522"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UwVi--_"</span>
|
||||
}
|
||||
arangosh> db._document(myGraph.e1);
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7474"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7474"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7467"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7471"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkFK--A"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7522"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7522"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7515"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7519"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UwVi--_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>
|
||||
}
|
||||
arangosh> db.relation.edges(myGraph.e1._id);
|
||||
|
|
|
@ -1,33 +1,33 @@
|
|||
arangosh> db._create(<span class="hljs-string">"vertex"</span>);
|
||||
[ArangoCollection <span class="hljs-number">7487</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">7535</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
arangosh> db._createEdgeCollection(<span class="hljs-string">"relation"</span>);
|
||||
[ArangoCollection <span class="hljs-number">7489</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">7538</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
arangosh> myGraph.v1 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 1"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7492"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7492"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkPm---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7542"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7542"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uwhe--_"</span>
|
||||
}
|
||||
arangosh> myGraph.v2 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 2"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7496"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7496"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkPq---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7546"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7546"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uwhi--_"</span>
|
||||
}
|
||||
arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2,
|
||||
........> { <span class="hljs-attr">label</span> : <span class="hljs-string">"knows"</span>});
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7499"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7499"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkPq--_"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7549"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7549"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uwhm--_"</span>
|
||||
}
|
||||
arangosh> db._document(myGraph.e1);
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7499"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7499"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7492"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7496"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkPq--_"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7549"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7549"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7542"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7546"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uwhm--_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>
|
||||
}
|
||||
arangosh> db.relation.inEdges(myGraph.v1._id);
|
||||
|
@ -35,11 +35,11 @@ arangosh> db.relation.inEdges(myGraph.v1._id);
|
|||
arangosh> db.relation.inEdges(myGraph.v2._id);
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7499"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7499"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7492"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7496"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkPq--_"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7549"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7549"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7542"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7546"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uwhm--_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,43 +1,43 @@
|
|||
arangosh> db._create(<span class="hljs-string">"vertex"</span>);
|
||||
[ArangoCollection <span class="hljs-number">7513</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">7563</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
arangosh> db._createEdgeCollection(<span class="hljs-string">"relation"</span>);
|
||||
[ArangoCollection <span class="hljs-number">7515</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">7566</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
arangosh> myGraph.v1 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 1"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7518"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7518"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkam---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7570"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7570"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uwui--_"</span>
|
||||
}
|
||||
arangosh> myGraph.v2 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 2"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7522"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7522"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkam--_"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7574"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7574"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uwum--_"</span>
|
||||
}
|
||||
arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2,
|
||||
........> { <span class="hljs-attr">label</span> : <span class="hljs-string">"knows"</span>});
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7525"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7525"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkaq---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7577"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7577"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uwum--B"</span>
|
||||
}
|
||||
arangosh> db._document(myGraph.e1);
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7525"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7525"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7518"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7522"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkaq---"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7577"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7577"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7570"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7574"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uwum--B"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>
|
||||
}
|
||||
arangosh> db.relation.outEdges(myGraph.v1._id);
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7525"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7525"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7518"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7522"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkaq---"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7577"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7577"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7570"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7574"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uwum--B"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -5,170 +5,170 @@ arangosh> db.circles.toArray();
|
|||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"I"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/I"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkn2---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8G--_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"9"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"G"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkny--D"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8C--B"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"7"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"F"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/F"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkny--C"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8C--_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"6"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"A"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/A"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQknu---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw72--_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"1"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"E"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/E"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkny--B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8---B"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"5"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"C"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/C"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkny--_"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw76--B"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"3"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"D"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/D"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkny--A"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8---_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"4"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"J"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/J"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkn2--_"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8G--B"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"10"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"B"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkny---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw76--_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"2"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"H"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/H"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkny--E"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8C--D"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"8"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"K"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/K"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkn2--A"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8K--_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"11"</span>
|
||||
}
|
||||
]
|
||||
arangosh> db.edges.toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7598"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7598"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/J"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkn6--C"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zip"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7586"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7586"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/E"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/F"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkn6---"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_schubi"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7577"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7577"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/C"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkn2--C"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blarg"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7589"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7589"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkn6--_"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_foo"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7592"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7592"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/H"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkn6--A"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blob"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7583"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7583"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/E"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkn2--E"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blub"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7601"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7601"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7658"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7658"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/J"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/K"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkn6--D"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8a--_"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zup"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7595"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7595"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/H"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/I"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkn6--B"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blub"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7573"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7573"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7630"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7630"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkn2--B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8K--B"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_bar"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7580"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7580"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7634"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7634"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/C"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8O--_"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blarg"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7637"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7637"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/C"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/D"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQkn2--D"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8O--B"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blorg"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7652"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7652"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/H"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/I"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8W--B"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blub"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7649"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7649"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/H"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8W--_"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blob"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7643"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7643"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/E"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/F"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8S--_"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_schubi"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7655"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7655"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/J"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8W--D"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zip"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7640"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7640"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/E"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8O--D"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blub"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7646"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7646"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uw8S--B"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_foo"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -6,15 +6,15 @@ arangosh> db._query(<span class="hljs-string">"FOR v, e IN OUTBOUND SHORTEST_
|
|||
],
|
||||
[
|
||||
<span class="hljs-string">"B"</span>,
|
||||
<span class="hljs-string">"7573"</span>
|
||||
<span class="hljs-string">"7630"</span>
|
||||
],
|
||||
[
|
||||
<span class="hljs-string">"C"</span>,
|
||||
<span class="hljs-string">"7577"</span>
|
||||
<span class="hljs-string">"7634"</span>
|
||||
],
|
||||
[
|
||||
<span class="hljs-string">"D"</span>,
|
||||
<span class="hljs-string">"7580"</span>
|
||||
<span class="hljs-string">"7637"</span>
|
||||
]
|
||||
]
|
||||
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">4</span>, <span class="hljs-attr">cached</span>: <span class="hljs-literal">false</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
|
||||
|
@ -26,15 +26,15 @@ arangosh> db._query(<span class="hljs-string">"FOR v, e IN OUTBOUND SHORTEST_
|
|||
],
|
||||
[
|
||||
<span class="hljs-string">"B"</span>,
|
||||
<span class="hljs-string">"7573"</span>
|
||||
<span class="hljs-string">"7630"</span>
|
||||
],
|
||||
[
|
||||
<span class="hljs-string">"C"</span>,
|
||||
<span class="hljs-string">"7577"</span>
|
||||
<span class="hljs-string">"7634"</span>
|
||||
],
|
||||
[
|
||||
<span class="hljs-string">"D"</span>,
|
||||
<span class="hljs-string">"7580"</span>
|
||||
<span class="hljs-string">"7637"</span>
|
||||
]
|
||||
]
|
||||
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">4</span>, <span class="hljs-attr">cached</span>: <span class="hljs-literal">false</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
|
||||
|
|
|
@ -6,15 +6,15 @@ arangosh> db._query(<span class="hljs-string">"FOR a IN circles FILTER a._key
|
|||
],
|
||||
[
|
||||
<span class="hljs-string">"B"</span>,
|
||||
<span class="hljs-string">"7573"</span>
|
||||
<span class="hljs-string">"7630"</span>
|
||||
],
|
||||
[
|
||||
<span class="hljs-string">"C"</span>,
|
||||
<span class="hljs-string">"7577"</span>
|
||||
<span class="hljs-string">"7634"</span>
|
||||
],
|
||||
[
|
||||
<span class="hljs-string">"D"</span>,
|
||||
<span class="hljs-string">"7580"</span>
|
||||
<span class="hljs-string">"7637"</span>
|
||||
]
|
||||
]
|
||||
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">4</span>, <span class="hljs-attr">cached</span>: <span class="hljs-literal">false</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
|
||||
|
@ -26,15 +26,15 @@ arangosh> db._query(<span class="hljs-string">"FOR a IN circles FILTER a._key
|
|||
],
|
||||
[
|
||||
<span class="hljs-string">"B"</span>,
|
||||
<span class="hljs-string">"7573"</span>
|
||||
<span class="hljs-string">"7630"</span>
|
||||
],
|
||||
[
|
||||
<span class="hljs-string">"C"</span>,
|
||||
<span class="hljs-string">"7577"</span>
|
||||
<span class="hljs-string">"7634"</span>
|
||||
],
|
||||
[
|
||||
<span class="hljs-string">"D"</span>,
|
||||
<span class="hljs-string">"7580"</span>
|
||||
<span class="hljs-string">"7637"</span>
|
||||
]
|
||||
]
|
||||
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">4</span>, <span class="hljs-attr">cached</span>: <span class="hljs-literal">false</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
|
||||
|
|
|
@ -5,170 +5,170 @@ arangosh> db.circles.toArray();
|
|||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"I"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/I"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3K--A"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPW--B"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"9"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"G"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3K---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPS--D"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"7"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"F"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/F"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3G--D"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPS--B"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"6"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"A"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/A"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3G---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPK--_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"1"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"E"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/E"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3G--C"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPS--_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"5"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"C"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/C"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3G--A"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPO--_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"3"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"D"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/D"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3G--B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPO--B"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"4"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"J"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/J"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3K--B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPa--_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"10"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"B"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3G--_"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPK--B"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"2"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"H"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/H"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3K--_"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPW--_"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"8"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"K"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/K"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3K--C"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPa--B"</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"11"</span>
|
||||
}
|
||||
]
|
||||
arangosh> db.edges.toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7692"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7692"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/J"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3O--D"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zip"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7677"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7677"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7739"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7739"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/E"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3O---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPi--B"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blub"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7689"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7689"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/H"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/I"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3O--C"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blub"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7667"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7667"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3K--D"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_bar"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7680"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7680"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7742"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7742"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/E"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/F"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3O--_"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPi--D"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_schubi"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7674"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7674"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/C"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/D"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3K--F"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blorg"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7683"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7683"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3O--A"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_foo"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7686"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7686"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/H"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3O--B"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blob"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7671"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7671"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7733"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7733"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/C"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3K--E"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPe--B"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blarg"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7695"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7695"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7754"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7754"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/J"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPq--_"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zip"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7736"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7736"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/C"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/D"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPi--_"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blorg"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7751"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7751"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/H"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/I"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPm--D"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blub"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7745"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7745"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPm--_"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_foo"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7729"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7729"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPe--_"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_bar"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7757"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7757"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/J"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/K"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQk3O--E"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPq--B"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zup"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7748"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7748"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/H"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UxPm--B"</span>,
|
||||
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blob"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -8,7 +8,7 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7747"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7747"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQlB6---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7809"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7809"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uxau--_"</span>
|
||||
}
|
||||
|
|
|
@ -2,32 +2,32 @@ arangosh> db._routing.save({
|
|||
........> url: { <span class="hljs-attr">match</span>: <span class="hljs-string">"/hello/world"</span> },
|
||||
........> content: { <span class="hljs-attr">contentType</span>: <span class="hljs-string">"text/plain"</span>, <span class="hljs-attr">body</span>: <span class="hljs-string">"Match No 1"</span>} });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7761"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7761"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQlG6---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7823"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7823"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uxea--_"</span>
|
||||
}
|
||||
arangosh> db._routing.save({
|
||||
........> url: { <span class="hljs-attr">match</span>: <span class="hljs-string">"/hello/:name"</span>, <span class="hljs-attr">constraint</span>: { <span class="hljs-attr">name</span>: <span class="hljs-string">"/[a-z]+/"</span> } },
|
||||
........> content: { <span class="hljs-attr">contentType</span>: <span class="hljs-string">"text/plain"</span>, <span class="hljs-attr">body</span>: <span class="hljs-string">"Match No 2"</span>} });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7765"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7765"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQlG6--_"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7827"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7827"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uxee--_"</span>
|
||||
}
|
||||
arangosh> db._routing.save({
|
||||
........> url: { <span class="hljs-attr">match</span>: <span class="hljs-string">"/:something/world"</span> },
|
||||
........> content: { <span class="hljs-attr">contentType</span>: <span class="hljs-string">"text/plain"</span>, <span class="hljs-attr">body</span>: <span class="hljs-string">"Match No 3"</span>} });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7768"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7768"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQlH----"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7830"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7830"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uxee--B"</span>
|
||||
}
|
||||
arangosh> db._routing.save({
|
||||
........> url: { <span class="hljs-attr">match</span>: <span class="hljs-string">"/hi/*"</span> },
|
||||
........> content: { <span class="hljs-attr">contentType</span>: <span class="hljs-string">"text/plain"</span>, <span class="hljs-attr">body</span>: <span class="hljs-string">"Match No 4"</span>} });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7771"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7771"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQlH---_"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7833"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7833"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uxee--D"</span>
|
||||
}
|
||||
arangosh> <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()
|
||||
|
|
|
@ -8,15 +8,15 @@ EOF
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQlXy---
|
||||
etag: _WE2Uxwi--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"edge"</span> : {
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7830"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7830"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQlXy---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7900"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7900"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uxwi--_"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ EOF
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQlm----
|
||||
etag: _WE2UyAi--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
|
@ -49,7 +49,7 @@ x-content-type-options: nosniff
|
|||
<span class="hljs-string">"replicationFactor"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQlm----"</span>
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UyAi--_"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
|
||||
}
|
||||
|
|
|
@ -6,15 +6,15 @@ EOF
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQmAa---
|
||||
etag: _WE2Uyfa--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"vertex"</span> : {
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"male/7993"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7993"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQmAa---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"male/8079"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8079"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2Uyfa--_"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ EOF
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQmTm---
|
||||
etag: _WE2UyyS--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
|
@ -34,7 +34,7 @@ x-content-type-options: nosniff
|
|||
<span class="hljs-string">"replicationFactor"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQmTm---"</span>
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UyyS--_"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ EOF
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQmtu---
|
||||
etag: _WE2UzMm--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
|
@ -41,7 +41,7 @@ x-content-type-options: nosniff
|
|||
<span class="hljs-string">"replicationFactor"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/myGraph"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQmtu---"</span>
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UzMm--_"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ EOF
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQnBG---
|
||||
etag: _WE2UzeW--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
|
@ -46,7 +46,7 @@ x-content-type-options: nosniff
|
|||
<span class="hljs-string">"replicationFactor"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/myGraph"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQnBG---"</span>
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2UzeW--_"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/edge/relation/8214
|
||||
shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/edge/relation/8313
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
|
|
|
@ -2,7 +2,7 @@ shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/edge/re
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQn9----
|
||||
etag: _WE2U1QK--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ x-content-type-options: nosniff
|
|||
<span class="hljs-string">"replicationFactor"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQn9----"</span>
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U1QK--_"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
|
||||
}
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
shell> curl --dump - http://localhost:8529/_api/gharial/social/edge/relation/8492
|
||||
shell> curl --dump - http://localhost:8529/_api/gharial/social/edge/relation/8628
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQoa2--B
|
||||
etag: _WE2U2Qu--B
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"edge"</span> : {
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8492"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/8492"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"male/charly"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"female/diana"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQoa2--B"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8628"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/8628"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"female/alice"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"male/bob"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U2Qu--B"</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"married"</span>,
|
||||
<span class="hljs-string">"vertex"</span> : <span class="hljs-string">"charly"</span>
|
||||
<span class="hljs-string">"vertex"</span> : <span class="hljs-string">"alice"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ shell> curl --dump - http://localhost:8529/_api/gharial/myGraph
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQose---
|
||||
etag: _WE2U2ga--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ x-content-type-options: nosniff
|
|||
<span class="hljs-string">"replicationFactor"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/myGraph"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQose---"</span>
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U2ga--_"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ shell> curl --dump - http://localhost:8529/_api/gharial/social/vertex/female/ali
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQo8e---
|
||||
etag: _WE2U20C--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
|
@ -10,7 +10,7 @@ x-content-type-options: nosniff
|
|||
<span class="hljs-string">"vertex"</span> : {
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"alice"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"female/alice"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQo8e---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U20C--_"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Alice"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>
|
||||
|
|
|
@ -10,7 +10,7 @@ x-content-type-options: nosniff
|
|||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"routeplanner"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/routeplanner"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQpaG---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U3Tu--_"</span>,
|
||||
<span class="hljs-string">"orphanCollections"</span> : [ ],
|
||||
<span class="hljs-string">"edgeDefinitions"</span> : [
|
||||
{
|
||||
|
@ -49,7 +49,7 @@ x-content-type-options: nosniff
|
|||
{
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"social"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQpNG---"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U3Ga--_"</span>,
|
||||
<span class="hljs-string">"orphanCollections"</span> : [ ],
|
||||
<span class="hljs-string">"edgeDefinitions"</span> : [
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ EOF
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQqqK--_
|
||||
etag: _WE2U4gq--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
|
@ -14,8 +14,8 @@ x-content-type-options: nosniff
|
|||
<span class="hljs-string">"vertex"</span> : {
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"female/alice"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"alice"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQqqK--_"</span>,
|
||||
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_VvTQqp2--_"</span>
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U4gq--_"</span>,
|
||||
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_WE2U4gW--B"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/9065 <<EOF
|
||||
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/9272 <<EOF
|
||||
{
|
||||
<span class="hljs-string">"since"</span> : <span class="hljs-string">"01.01.2001"</span>
|
||||
}
|
||||
|
@ -6,16 +6,16 @@ EOF
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQq7a--_
|
||||
etag: _WE2U4yG--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"edge"</span> : {
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/9065"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9065"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQq7a--_"</span>,
|
||||
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_VvTQq7K--C"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/9272"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9272"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U4yG--_"</span>,
|
||||
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_WE2U4xy--F"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/9141 <<EOF
|
||||
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/9352 <<EOF
|
||||
{
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"divorced"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"female/alice"</span>,
|
||||
|
@ -8,16 +8,16 @@ EOF
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQrNu--_
|
||||
etag: _WE2U5Hy--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"edge"</span> : {
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/9141"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9141"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQrNu--_"</span>,
|
||||
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_VvTQrNi--B"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/9352"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9352"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U5Hy--_"</span>,
|
||||
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_WE2U5Ha--_"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/vertex/
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQrf2--_
|
||||
etag: _WE2U5cC--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
|
@ -28,7 +28,7 @@ x-content-type-options: nosniff
|
|||
<span class="hljs-string">"replicationFactor"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQrf2--_"</span>
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U5cC--_"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ EOF
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTQsFC---
|
||||
etag: _WE2U6Bq--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
|
@ -44,7 +44,7 @@ x-content-type-options: nosniff
|
|||
<span class="hljs-string">"replicationFactor"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTQsFC---"</span>
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U6Bq--_"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ EOF
|
|||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
etag: _VvTRDbm--_
|
||||
etag: _WE2U6eG--_
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
|
@ -15,8 +15,8 @@ x-content-type-options: nosniff
|
|||
<span class="hljs-string">"vertex"</span> : {
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"female/alice"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"alice"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTRDbm--_"</span>,
|
||||
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_VvTRDbS---"</span>
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U6eG--_"</span>,
|
||||
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_WE2U6dm--B"</span>
|
||||
},
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ arangosh> db.example.ensureIndex({ <span class="hljs-attr">type</span>: <span
|
|||
<span class="hljs-string">"a"</span>,
|
||||
<span class="hljs-string">"b"</span>
|
||||
],
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/9508"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/9729"</span>,
|
||||
<span class="hljs-string">"isNewlyCreated"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"sparse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
|
@ -16,7 +16,7 @@ arangosh> <span class="hljs-keyword">var</span> indexInfo = db.example.getInd
|
|||
arangosh> indexInfo;
|
||||
[
|
||||
<span class="hljs-string">"example/0"</span>,
|
||||
<span class="hljs-string">"example/9508"</span>
|
||||
<span class="hljs-string">"example/9729"</span>
|
||||
]
|
||||
arangosh> db._index(indexInfo[<span class="hljs-number">0</span>])
|
||||
{
|
||||
|
@ -37,7 +37,7 @@ arangosh> db._index(indexInfo[<span class="hljs-number">1</span>])
|
|||
<span class="hljs-string">"a"</span>,
|
||||
<span class="hljs-string">"b"</span>
|
||||
],
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/9508"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/9729"</span>,
|
||||
<span class="hljs-string">"sparse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
<span class="hljs-string">"unique"</span> : <span class="hljs-literal">false</span>,
|
||||
|
|
|
@ -6,7 +6,7 @@ arangosh> db.example.ensureIndex({ <span class="hljs-attr">type</span>: <span
|
|||
<span class="hljs-string">"a"</span>,
|
||||
<span class="hljs-string">"b"</span>
|
||||
],
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/9520"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/9742"</span>,
|
||||
<span class="hljs-string">"isNewlyCreated"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"sparse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
|
|
|
@ -7,7 +7,7 @@ EOF
|
|||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-content-type-options: nosniff
|
||||
x-arango-async-id: 150789124763693
|
||||
x-arango-async-id: 151367546852130
|
||||
|
||||
shell> curl --dump - http://localhost:8529/_api/job/pending
|
||||
|
||||
|
@ -16,9 +16,9 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
|||
x-content-type-options: nosniff
|
||||
|
||||
[
|
||||
<span class="hljs-string">"150789124763693"</span>
|
||||
<span class="hljs-string">"151367546852130"</span>
|
||||
]
|
||||
shell> curl -X PUT --dump - http://localhost:8529/_api/job/150789124763693/cancel
|
||||
shell> curl -X PUT --dump - http://localhost:8529/_api/job/151367546852130/cancel
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
|
@ -34,5 +34,5 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
|||
x-content-type-options: nosniff
|
||||
|
||||
[
|
||||
<span class="hljs-string">"150789124763693"</span>
|
||||
<span class="hljs-string">"151367546852130"</span>
|
||||
]
|
||||
|
|
|
@ -3,7 +3,7 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
|
|||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-content-type-options: nosniff
|
||||
x-arango-async-id: 150789124763702
|
||||
x-arango-async-id: 151367546852139
|
||||
|
||||
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/all
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
|
|||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-content-type-options: nosniff
|
||||
x-arango-async-id: 150789124763707
|
||||
x-arango-async-id: 151367546852144
|
||||
|
||||
shell> curl --dump - http://localhost:8529/_admin/time
|
||||
|
||||
|
@ -12,11 +12,11 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
|||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
<span class="hljs-string">"time"</span> : <span class="hljs-number">1507891287.9095066</span>,
|
||||
<span class="hljs-string">"time"</span> : <span class="hljs-number">1513675486.9088335</span>,
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>
|
||||
}
|
||||
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/expired?stamp=1507891287.9095066
|
||||
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/expired?stamp=1513675486.9088335
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
|
|
|
@ -3,9 +3,9 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
|
|||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-content-type-options: nosniff
|
||||
x-arango-async-id: 150789124763716
|
||||
x-arango-async-id: 151367546852153
|
||||
|
||||
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/150789124763716
|
||||
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/151367546852153
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
|
|
|
@ -3,17 +3,17 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
|
|||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-content-type-options: nosniff
|
||||
x-arango-async-id: 150789124763730
|
||||
x-arango-async-id: 151367546852167
|
||||
|
||||
shell> curl -X PUT --dump - http://localhost:8529/_api/job/150789124763730
|
||||
shell> curl -X PUT --dump - http://localhost:8529/_api/job/151367546852167
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
x-content-type-options: nosniff
|
||||
x-arango-<span class="hljs-keyword">async</span>-id: <span class="hljs-number">150789124763730</span>
|
||||
x-arango-<span class="hljs-keyword">async</span>-id: <span class="hljs-number">151367546852167</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"server"</span> : <span class="hljs-string">"arango"</span>,
|
||||
<span class="hljs-string">"version"</span> : <span class="hljs-string">"3.3.milestone1"</span>,
|
||||
<span class="hljs-string">"version"</span> : <span class="hljs-string">"3.3.devel"</span>,
|
||||
<span class="hljs-string">"license"</span> : <span class="hljs-string">"community"</span>
|
||||
}
|
||||
|
|
|
@ -7,18 +7,18 @@ EOF
|
|||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-content-type-options: nosniff
|
||||
x-arango-async-id: 150789124763735
|
||||
x-arango-async-id: 151367546852172
|
||||
|
||||
shell> curl -X PUT --dump - http://localhost:8529/_api/job/150789124763735
|
||||
shell> curl -X PUT --dump - http://localhost:8529/_api/job/151367546852172
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">400</span> Bad Request
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
x-content-type-options: nosniff
|
||||
x-arango-<span class="hljs-keyword">async</span>-id: <span class="hljs-number">150789124763735</span>
|
||||
x-arango-<span class="hljs-keyword">async</span>-id: <span class="hljs-number">151367546852172</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"errorMessage"</span> : <span class="hljs-string">"expected PUT /_api/collection/<collection-name>/<action>"</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">400</span>,
|
||||
<span class="hljs-string">"errorNum"</span> : <span class="hljs-number">400</span>,
|
||||
<span class="hljs-string">"errorMessage"</span> : <span class="hljs-string">"expected PUT /_api/collection/<collection-name>/<action>"</span>
|
||||
<span class="hljs-string">"errorNum"</span> : <span class="hljs-number">400</span>
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
|
|||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-content-type-options: nosniff
|
||||
x-arango-async-id: 150789124763740
|
||||
x-arango-async-id: 151367546852177
|
||||
|
||||
shell> curl --dump - http://localhost:8529/_api/job/done
|
||||
|
||||
|
@ -12,5 +12,5 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
|||
x-content-type-options: nosniff
|
||||
|
||||
[
|
||||
<span class="hljs-string">"150789124763740"</span>
|
||||
<span class="hljs-string">"151367546852177"</span>
|
||||
]
|
||||
|
|
|
@ -3,7 +3,7 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
|
|||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-content-type-options: nosniff
|
||||
x-arango-async-id: 150789124763745
|
||||
x-arango-async-id: 151367546852182
|
||||
|
||||
shell> curl --dump - http://localhost:8529/_api/job/pending
|
||||
|
||||
|
|
|
@ -1,9 +1,18 @@
|
|||
shell> curl --header 'x-arango-async: store' --dump - http://localhost:8529/_admin/sleep?duration=30
|
||||
shell> curl -X POST --header 'x-arango-async: store' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF
|
||||
{
|
||||
<span class="hljs-string">"collections"</span> : {
|
||||
<span class="hljs-string">"read"</span> : [
|
||||
<span class="hljs-string">"_frontend"</span>
|
||||
]
|
||||
},
|
||||
<span class="hljs-string">"action"</span> : <span class="hljs-string">"function () {require('internal').sleep(15.0);}"</span>
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-content-type-options: nosniff
|
||||
x-arango-async-id: 150789124763750
|
||||
x-arango-async-id: 151367546852187
|
||||
|
||||
shell> curl --dump - http://localhost:8529/_api/job/pending
|
||||
|
||||
|
@ -12,9 +21,9 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
|||
x-content-type-options: nosniff
|
||||
|
||||
[
|
||||
<span class="hljs-string">"150789124763750"</span>
|
||||
<span class="hljs-string">"151367546852187"</span>
|
||||
]
|
||||
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/150789124763750
|
||||
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/151367546852187
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
|
|
|
@ -3,17 +3,17 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
|
|||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-content-type-options: nosniff
|
||||
x-arango-async-id: 150789124763757
|
||||
x-arango-async-id: 151367546852194
|
||||
|
||||
shell> curl -X PUT --dump - http://localhost:8529/_api/job/150789124763757
|
||||
shell> curl -X PUT --dump - http://localhost:8529/_api/job/151367546852194
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
x-content-type-options: nosniff
|
||||
x-arango-<span class="hljs-keyword">async</span>-id: <span class="hljs-number">150789124763757</span>
|
||||
x-arango-<span class="hljs-keyword">async</span>-id: <span class="hljs-number">151367546852194</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"server"</span> : <span class="hljs-string">"arango"</span>,
|
||||
<span class="hljs-string">"version"</span> : <span class="hljs-string">"3.3.milestone1"</span>,
|
||||
<span class="hljs-string">"version"</span> : <span class="hljs-string">"3.3.devel"</span>,
|
||||
<span class="hljs-string">"license"</span> : <span class="hljs-string">"community"</span>
|
||||
}
|
||||
|
|
|
@ -1,11 +1,20 @@
|
|||
shell> curl --header 'x-arango-async: store' --dump - http://localhost:8529/_admin/sleep?duration=30
|
||||
shell> curl -X POST --header 'x-arango-async: store' --data-binary @- --dump - http://localhost:8529/_api/transaction <<EOF
|
||||
{
|
||||
<span class="hljs-string">"collections"</span> : {
|
||||
<span class="hljs-string">"read"</span> : [
|
||||
<span class="hljs-string">"_frontend"</span>
|
||||
]
|
||||
},
|
||||
<span class="hljs-string">"action"</span> : <span class="hljs-string">"function () {require('internal').sleep(15.0);}"</span>
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-content-type-options: nosniff
|
||||
x-arango-async-id: 150789124763762
|
||||
x-arango-async-id: 151367546852199
|
||||
|
||||
shell> curl --dump - http://localhost:8529/_api/job/150789124763762
|
||||
shell> curl --dump - http://localhost:8529/_api/job/151367546852199
|
||||
|
||||
HTTP/1.1 204 No Content
|
||||
content-type: text/plain; charset=utf-8
|
||||
|
|
|
@ -6,8 +6,8 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9529"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9529"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTREO----"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9752"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9752"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U7z---_"</span>
|
||||
}
|
||||
arangosh> <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()
|
||||
|
|
|
@ -6,8 +6,8 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9543"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9543"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTRERK---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9767"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9767"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8OW--_"</span>
|
||||
}
|
||||
arangosh> <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()
|
||||
|
|
|
@ -5,7 +5,7 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9557"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9557"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTRESq---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9781"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9781"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8QW--_"</span>
|
||||
}
|
||||
|
|
|
@ -2,18 +2,18 @@ arangosh> arango.GET(<span class="hljs-string">"/hello/echo"</span>)
|
|||
{
|
||||
<span class="hljs-string">"request"</span> : {
|
||||
<span class="hljs-string">"authorized"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-string">"root"</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-literal">null</span>,
|
||||
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
|
||||
<span class="hljs-string">"url"</span> : <span class="hljs-string">"/hello/echo"</span>,
|
||||
<span class="hljs-string">"protocol"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"server"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">4247</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">24507</span>
|
||||
},
|
||||
<span class="hljs-string">"client"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">38026</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"150789124760515"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">57022</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"151367546848314"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
|
|
@ -5,7 +5,7 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9571"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9571"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTREUq---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9795"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9795"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8Rq--_"</span>
|
||||
}
|
||||
|
|
|
@ -2,18 +2,18 @@ arangosh> arango.GET(<span class="hljs-string">"/hello/echo"</span>)
|
|||
{
|
||||
<span class="hljs-string">"request"</span> : {
|
||||
<span class="hljs-string">"authorized"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-string">"root"</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-literal">null</span>,
|
||||
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
|
||||
<span class="hljs-string">"url"</span> : <span class="hljs-string">"/hello/echo"</span>,
|
||||
<span class="hljs-string">"protocol"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"server"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">4247</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">24507</span>
|
||||
},
|
||||
<span class="hljs-string">"client"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">38026</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"150789124760515"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">57022</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"151367546848314"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
|
|
@ -5,7 +5,7 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9585"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9585"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTREYa---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9809"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9809"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8S6--_"</span>
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> })
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9599"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9599"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTREaG---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9823"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9823"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8T6--_"</span>
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9609"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9609"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTREcC---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9833"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9833"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8U6--_"</span>
|
||||
}
|
||||
|
|
|
@ -2,18 +2,18 @@ arangosh> arango.GET(<span class="hljs-string">"/echo"</span>)
|
|||
{
|
||||
<span class="hljs-string">"request"</span> : {
|
||||
<span class="hljs-string">"authorized"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-string">"root"</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-literal">null</span>,
|
||||
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
|
||||
<span class="hljs-string">"url"</span> : <span class="hljs-string">"/echo"</span>,
|
||||
<span class="hljs-string">"protocol"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"server"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">4247</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">24507</span>
|
||||
},
|
||||
<span class="hljs-string">"client"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">38026</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"150789124760515"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">57022</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"151367546848314"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -33,6 +33,7 @@ arangosh> arango.GET(<span class="hljs-string">"/echo"</span>)
|
|||
}
|
||||
},
|
||||
<span class="hljs-string">"options"</span> : {
|
||||
<span class="hljs-string">"Hello"</span> : <span class="hljs-string">"World"</span>
|
||||
}
|
||||
}
|
||||
arangosh> db._query(<span class="hljs-string">"FOR route IN _routing FILTER route.url == '/echo' REMOVE route in _routing"</span>)
|
||||
|
|
|
@ -8,7 +8,7 @@ arangosh> db._modules.save({
|
|||
........> <span class="hljs-string">"};"</span>
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_modules/9623"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9623"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTREeC---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_modules/9847"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9847"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8WC--_"</span>
|
||||
}
|
||||
|
|
|
@ -5,8 +5,8 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9627"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9627"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTREeG---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9851"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9851"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8WG--_"</span>
|
||||
}
|
||||
arangosh> <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()
|
||||
|
|
|
@ -9,8 +9,8 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9648"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9648"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTREgC---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9872"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9872"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8Xa--_"</span>
|
||||
}
|
||||
arangosh> <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()
|
||||
|
|
|
@ -15,8 +15,8 @@ arangosh> db._routing.save({
|
|||
........> ]
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9662"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9662"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTREh6---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9886"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9886"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8Yq--_"</span>
|
||||
}
|
||||
arangosh> <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()
|
||||
|
|
|
@ -16,8 +16,8 @@ arangosh> db._routing.save({
|
|||
........> ]
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9676"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9676"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTREji---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9900"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9900"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8Zy--_"</span>
|
||||
}
|
||||
arangosh> <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()
|
||||
|
|
|
@ -9,7 +9,7 @@ arangosh> db._modules.save({
|
|||
........> <span class="hljs-string">"};"</span>
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_modules/9690"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9690"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTREle---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_modules/9914"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9914"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8bC--_"</span>
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ arangosh> db._routing.save({
|
|||
........> ]
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9694"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9694"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTRElm---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9918"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9918"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8bG--_"</span>
|
||||
}
|
||||
|
|
|
@ -5,9 +5,9 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9698"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9698"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTRElq---"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9922"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9922"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8bK--_"</span>
|
||||
}
|
||||
arangosh> db._routing.save({
|
||||
........> url: <span class="hljs-string">"/subdirectory/ourtest/2"</span>,
|
||||
|
@ -16,9 +16,9 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9701"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9701"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTRElq--_"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9925"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9925"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8bK--B"</span>
|
||||
}
|
||||
arangosh> db._routing.save({
|
||||
........> url: <span class="hljs-string">"/subdirectory/ourtest/3"</span>,
|
||||
|
@ -27,8 +27,8 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9704"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9704"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTRElq--A"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9928"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9928"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8bK--D"</span>
|
||||
}
|
||||
arangosh> <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()
|
||||
|
|
|
@ -7,18 +7,18 @@ x-content-type-options: nosniff
|
|||
{
|
||||
<span class="hljs-string">"request"</span> : {
|
||||
<span class="hljs-string">"authorized"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-string">"root"</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-literal">null</span>,
|
||||
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
|
||||
<span class="hljs-string">"url"</span> : <span class="hljs-string">"/subdirectory/ourtest/1"</span>,
|
||||
<span class="hljs-string">"protocol"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"server"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">4247</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">24507</span>
|
||||
},
|
||||
<span class="hljs-string">"client"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">38026</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"150789124760515"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">57022</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"151367546848314"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -49,18 +49,18 @@ x-content-type-options: nosniff
|
|||
{
|
||||
<span class="hljs-string">"request"</span> : {
|
||||
<span class="hljs-string">"authorized"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-string">"root"</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-literal">null</span>,
|
||||
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
|
||||
<span class="hljs-string">"url"</span> : <span class="hljs-string">"/subdirectory/ourtest/2"</span>,
|
||||
<span class="hljs-string">"protocol"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"server"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">4247</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">24507</span>
|
||||
},
|
||||
<span class="hljs-string">"client"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">38026</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"150789124760515"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">57022</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"151367546848314"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -91,18 +91,18 @@ x-content-type-options: nosniff
|
|||
{
|
||||
<span class="hljs-string">"request"</span> : {
|
||||
<span class="hljs-string">"authorized"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-string">"root"</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-literal">null</span>,
|
||||
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
|
||||
<span class="hljs-string">"url"</span> : <span class="hljs-string">"/subdirectory/ourtest/3"</span>,
|
||||
<span class="hljs-string">"protocol"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"server"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">4247</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">24507</span>
|
||||
},
|
||||
<span class="hljs-string">"client"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">38026</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"150789124760515"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">57022</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"151367546848314"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
|
|
@ -8,8 +8,8 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9739"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9739"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_VvTREo----"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/9963"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"9963"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_WE2U8cu--_"</span>
|
||||
}
|
||||
arangosh> <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()
|
||||
|
|
|
@ -7,18 +7,18 @@ x-content-type-options: nosniff
|
|||
{
|
||||
<span class="hljs-string">"request"</span> : {
|
||||
<span class="hljs-string">"authorized"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-string">"root"</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-literal">null</span>,
|
||||
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
|
||||
<span class="hljs-string">"url"</span> : <span class="hljs-string">"/hello/world"</span>,
|
||||
<span class="hljs-string">"protocol"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"server"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">4247</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">24507</span>
|
||||
},
|
||||
<span class="hljs-string">"client"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">38026</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"150789124760515"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">57022</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"151367546848314"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -51,18 +51,18 @@ x-content-type-options: nosniff
|
|||
{
|
||||
<span class="hljs-string">"request"</span> : {
|
||||
<span class="hljs-string">"authorized"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-string">"root"</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-literal">null</span>,
|
||||
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
|
||||
<span class="hljs-string">"url"</span> : <span class="hljs-string">"/hello/world"</span>,
|
||||
<span class="hljs-string">"protocol"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"server"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">4247</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">24507</span>
|
||||
},
|
||||
<span class="hljs-string">"client"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">38026</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"150789124760515"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">57022</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"151367546848314"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -97,18 +97,18 @@ x-content-type-options: nosniff
|
|||
{
|
||||
<span class="hljs-string">"request"</span> : {
|
||||
<span class="hljs-string">"authorized"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-string">"root"</span>,
|
||||
<span class="hljs-string">"user"</span> : <span class="hljs-literal">null</span>,
|
||||
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
|
||||
<span class="hljs-string">"url"</span> : <span class="hljs-string">"/hello/world"</span>,
|
||||
<span class="hljs-string">"protocol"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"server"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">4247</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">24507</span>
|
||||
},
|
||||
<span class="hljs-string">"client"</span> : {
|
||||
<span class="hljs-string">"address"</span> : <span class="hljs-string">"127.0.0.1"</span>,
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">38026</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"150789124760515"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">57022</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"151367546848314"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
|
|
@ -8,7 +8,7 @@ arangosh> tasks.register({
|
|||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"mytask-1"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"this is a sample task to spawn a slow aql query"</span>,
|
||||
<span class="hljs-string">"created"</span> : <span class="hljs-number">1507891288.7879143</span>,
|
||||
<span class="hljs-string">"created"</span> : <span class="hljs-number">1513675487.750042</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"timed"</span>,
|
||||
<span class="hljs-string">"offset"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"command"</span> : <span class="hljs-string">"(function (params) { require('@arangodb').db._query('FOR sleepLoooong IN 1..5 LET sleepLoooonger = SLEEP(1000) RETURN sleepLoooong'); } )(params);"</span>,
|
||||
|
@ -18,12 +18,12 @@ arangosh> tasks.register({
|
|||
arangosh> queries.current();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"261"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"255"</span>,
|
||||
<span class="hljs-string">"query"</span> : <span class="hljs-string">"FOR sleepLoooong IN 1..5 LET sleepLoooonger = SLEEP(1000) RETURN sleepLoooong"</span>,
|
||||
<span class="hljs-string">"bindVars"</span> : {
|
||||
},
|
||||
<span class="hljs-string">"started"</span> : <span class="hljs-string">"2017-10-13T10:41:28Z"</span>,
|
||||
<span class="hljs-string">"runTime"</span> : <span class="hljs-number">1.0245373249053955</span>,
|
||||
<span class="hljs-string">"started"</span> : <span class="hljs-string">"2017-12-19T09:24:47Z"</span>,
|
||||
<span class="hljs-string">"runTime"</span> : <span class="hljs-number">1.029078483581543</span>,
|
||||
<span class="hljs-string">"state"</span> : <span class="hljs-string">"executing"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -5,17 +5,17 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
|||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
<span class="hljs-string">"time"</span> : <span class="hljs-number">1507891317.974833</span>,
|
||||
<span class="hljs-string">"time"</span> : <span class="hljs-number">1513675488.7956874</span>,
|
||||
<span class="hljs-string">"enabled"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"system"</span> : {
|
||||
<span class="hljs-string">"minorPageFaults"</span> : <span class="hljs-number">78339</span>,
|
||||
<span class="hljs-string">"majorPageFaults"</span> : <span class="hljs-number">271</span>,
|
||||
<span class="hljs-string">"userTime"</span> : <span class="hljs-number">2.75</span>,
|
||||
<span class="hljs-string">"systemTime"</span> : <span class="hljs-number">0.74</span>,
|
||||
<span class="hljs-string">"numberOfThreads"</span> : <span class="hljs-number">40</span>,
|
||||
<span class="hljs-string">"residentSize"</span> : <span class="hljs-number">389869568</span>,
|
||||
<span class="hljs-string">"residentSizePercent"</span> : <span class="hljs-number">0.011581839887266182</span>,
|
||||
<span class="hljs-string">"virtualSize"</span> : <span class="hljs-number">2645159936</span>
|
||||
<span class="hljs-string">"minorPageFaults"</span> : <span class="hljs-number">75570</span>,
|
||||
<span class="hljs-string">"majorPageFaults"</span> : <span class="hljs-number">7</span>,
|
||||
<span class="hljs-string">"userTime"</span> : <span class="hljs-number">3.12</span>,
|
||||
<span class="hljs-string">"systemTime"</span> : <span class="hljs-number">1.01</span>,
|
||||
<span class="hljs-string">"numberOfThreads"</span> : <span class="hljs-number">47</span>,
|
||||
<span class="hljs-string">"residentSize"</span> : <span class="hljs-number">424198144</span>,
|
||||
<span class="hljs-string">"residentSizePercent"</span> : <span class="hljs-number">0.012601637541208355</span>,
|
||||
<span class="hljs-string">"virtualSize"</span> : <span class="hljs-number">3223433216</span>
|
||||
},
|
||||
<span class="hljs-string">"client"</span> : {
|
||||
<span class="hljs-string">"httpConnections"</span> : <span class="hljs-number">1</span>,
|
||||
|
@ -30,33 +30,33 @@ x-content-type-options: nosniff
|
|||
]
|
||||
},
|
||||
<span class="hljs-string">"totalTime"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">13.110588312149048</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">3898</span>,
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">15.40323543548584</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">4032</span>,
|
||||
<span class="hljs-string">"counts"</span> : [
|
||||
<span class="hljs-number">3641</span>,
|
||||
<span class="hljs-number">169</span>,
|
||||
<span class="hljs-number">79</span>,
|
||||
<span class="hljs-number">6</span>,
|
||||
<span class="hljs-number">3</span>,
|
||||
<span class="hljs-number">3781</span>,
|
||||
<span class="hljs-number">155</span>,
|
||||
<span class="hljs-number">69</span>,
|
||||
<span class="hljs-number">20</span>,
|
||||
<span class="hljs-number">7</span>,
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">0</span>
|
||||
]
|
||||
},
|
||||
<span class="hljs-string">"requestTime"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">0.03468728065490723</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">3898</span>,
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">0.11271238327026367</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">4032</span>,
|
||||
<span class="hljs-string">"counts"</span> : [
|
||||
<span class="hljs-number">3897</span>,
|
||||
<span class="hljs-number">4031</span>,
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">1</span>,
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">0</span>
|
||||
]
|
||||
},
|
||||
<span class="hljs-string">"queueTime"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">0.000171661376953125</span>,
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">0.0005056858062744141</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">9</span>,
|
||||
<span class="hljs-string">"counts"</span> : [
|
||||
<span class="hljs-number">9</span>,
|
||||
|
@ -69,35 +69,35 @@ x-content-type-options: nosniff
|
|||
]
|
||||
},
|
||||
<span class="hljs-string">"ioTime"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">13.075729370117188</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">3898</span>,
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">15.290017366409302</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">4032</span>,
|
||||
<span class="hljs-string">"counts"</span> : [
|
||||
<span class="hljs-number">3642</span>,
|
||||
<span class="hljs-number">168</span>,
|
||||
<span class="hljs-number">79</span>,
|
||||
<span class="hljs-number">6</span>,
|
||||
<span class="hljs-number">3</span>,
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">0</span>
|
||||
]
|
||||
},
|
||||
<span class="hljs-string">"bytesSent"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">1537365</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">3898</span>,
|
||||
<span class="hljs-string">"counts"</span> : [
|
||||
<span class="hljs-number">275</span>,
|
||||
<span class="hljs-number">3290</span>,
|
||||
<span class="hljs-number">326</span>,
|
||||
<span class="hljs-number">3782</span>,
|
||||
<span class="hljs-number">155</span>,
|
||||
<span class="hljs-number">69</span>,
|
||||
<span class="hljs-number">19</span>,
|
||||
<span class="hljs-number">7</span>,
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">0</span>
|
||||
]
|
||||
},
|
||||
<span class="hljs-string">"bytesReceived"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">846407</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">3898</span>,
|
||||
<span class="hljs-string">"bytesSent"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">1832358</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">4032</span>,
|
||||
<span class="hljs-string">"counts"</span> : [
|
||||
<span class="hljs-number">3591</span>,
|
||||
<span class="hljs-number">302</span>,
|
||||
<span class="hljs-number">3392</span>,
|
||||
<span class="hljs-number">273</span>,
|
||||
<span class="hljs-number">65</span>,
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">0</span>
|
||||
]
|
||||
},
|
||||
<span class="hljs-string">"bytesReceived"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">870869</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">4032</span>,
|
||||
<span class="hljs-string">"counts"</span> : [
|
||||
<span class="hljs-number">3725</span>,
|
||||
<span class="hljs-number">307</span>,
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">0</span>,
|
||||
|
@ -107,9 +107,9 @@ x-content-type-options: nosniff
|
|||
}
|
||||
},
|
||||
<span class="hljs-string">"http"</span> : {
|
||||
<span class="hljs-string">"requestsTotal"</span> : <span class="hljs-number">3898</span>,
|
||||
<span class="hljs-string">"requestsTotal"</span> : <span class="hljs-number">4032</span>,
|
||||
<span class="hljs-string">"requestsAsync"</span> : <span class="hljs-number">9</span>,
|
||||
<span class="hljs-string">"requestsGet"</span> : <span class="hljs-number">883</span>,
|
||||
<span class="hljs-string">"requestsGet"</span> : <span class="hljs-number">1017</span>,
|
||||
<span class="hljs-string">"requestsHead"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"requestsPost"</span> : <span class="hljs-number">2794</span>,
|
||||
<span class="hljs-string">"requestsPut"</span> : <span class="hljs-number">70</span>,
|
||||
|
@ -119,20 +119,20 @@ x-content-type-options: nosniff
|
|||
<span class="hljs-string">"requestsOther"</span> : <span class="hljs-number">0</span>
|
||||
},
|
||||
<span class="hljs-string">"server"</span> : {
|
||||
<span class="hljs-string">"uptime"</span> : <span class="hljs-number">70.24141120910645</span>,
|
||||
<span class="hljs-string">"uptime"</span> : <span class="hljs-number">20.24964141845703</span>,
|
||||
<span class="hljs-string">"physicalMemory"</span> : <span class="hljs-number">33662144512</span>,
|
||||
<span class="hljs-string">"v8Context"</span> : {
|
||||
<span class="hljs-string">"available"</span> : <span class="hljs-number">3</span>,
|
||||
<span class="hljs-string">"busy"</span> : <span class="hljs-number">3</span>,
|
||||
<span class="hljs-string">"available"</span> : <span class="hljs-number">4</span>,
|
||||
<span class="hljs-string">"busy"</span> : <span class="hljs-number">4</span>,
|
||||
<span class="hljs-string">"dirty"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"free"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"max"</span> : <span class="hljs-number">3</span>
|
||||
<span class="hljs-string">"max"</span> : <span class="hljs-number">16</span>
|
||||
},
|
||||
<span class="hljs-string">"threads"</span> : {
|
||||
<span class="hljs-string">"running"</span> : <span class="hljs-number">8</span>,
|
||||
<span class="hljs-string">"working"</span> : <span class="hljs-number">3</span>,
|
||||
<span class="hljs-string">"running"</span> : <span class="hljs-number">5</span>,
|
||||
<span class="hljs-string">"working"</span> : <span class="hljs-number">4</span>,
|
||||
<span class="hljs-string">"blocked"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"queued"</span> : <span class="hljs-number">4</span>
|
||||
<span class="hljs-string">"queued"</span> : <span class="hljs-number">1</span>
|
||||
}
|
||||
},
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
|
|
|
@ -17,4 +17,4 @@ content-type:
|
|||
x-content-type-options: nosniff
|
||||
x-arango-errors: 2
|
||||
|
||||
"--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\n\r\nHTTP/1.1 404 Not Found\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 92\r\n\r\n{\"error\":true,\"code\":404,\"errorNum\":1203,\"errorMessage\":\"unknown collection 'notexisting1'\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\n\r\nHTTP/1.1 404 Not Found\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 101\r\n\r\n{\"error\":true,\"code\":404,\"errorNum\":404,\"errorMessage\":\"unknown path '_api/collection/notexisting2'\"}\r\n--SomeBoundaryValue--"
|
||||
"--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\n\r\nHTTP/1.1 404 Not Found\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 79\r\n\r\n{\"error\":true,\"errorMessage\":\"collection not found\",\"code\":404,\"errorNum\":1203}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\n\r\nHTTP/1.1 404 Not Found\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 101\r\n\r\n{\"error\":true,\"code\":404,\"errorNum\":404,\"errorMessage\":\"unknown path '_api/collection/notexisting2'\"}\r\n--SomeBoundaryValue--"
|
||||
|
|
|
@ -39,4 +39,4 @@ content-type: multipart/form-data; boundary=SomeBoundaryValue
|
|||
x-content-type-options: nosniff
|
||||
x-arango-errors: 1
|
||||
|
||||
"--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId1\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 68\r\n\r\n{\"server\":\"arango\",\"version\":\"3.3.milestone1\",\"license\":\"community\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId2\r\n\r\nHTTP/1.1 404 Not Found\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 88\r\n\r\n{\"error\":true,\"code\":404,\"errorNum\":1203,\"errorMessage\":\"unknown collection 'products'\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: someId\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nLocation: /_db/_system/_api/collection/products\r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 132\r\n\r\n{\"id\":\"9785\",\"name\":\"products\",\"waitForSync\":false,\"isVolatile\":false,\"isSystem\":false,\"status\":3,\"type\":2,\"error\":false,\"code\":200}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: nextId\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nLocation: /_db/_system/_api/collection/products/figures\r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 767\r\n\r\n{\"id\":\"9785\",\"name\":\"products\",\"isSystem\":false,\"doCompact\":true,\"isVolatile\":false,\"journalSize\":33554432,\"keyOptions\":{\"type\":\"traditional\",\"allowUserKeys\":true,\"lastValue\":0},\"waitForSync\":false,\"indexBuckets\":8,\"count\":0,\"figures\":{\"indexes\":{\"count\":1,\"size\":32128},\"documentReferences\":0,\"waitingFor\":\"-\",\"alive\":{\"count\":0,\"size\":0},\"dead\":{\"count\":0,\"size\":0,\"deletion\":0},\"compactionStatus\":{\"message\":\"compaction not yet started\",\"time\":\"2017-10-13T10:41:58Z\",\"count\":0,\"filesCombined\":0,\"bytesRead\":0,\"bytesWritten\":0},\"datafiles\":{\"count\":0,\"fileSize\":0},\"journals\":{\"count\":0,\"fileSize\":0},\"compactors\":{\"count\":0,\"fileSize\":0},\"revisions\":{\"count\":0,\"size\":48192},\"lastTick\":0,\"uncollectedLogfileEntries\":0},\"status\":3,\"type\":2,\"error\":false,\"code\":200}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: otherId\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 38\r\n\r\n{\"id\":\"9785\",\"error\":false,\"code\":200}\r\n--SomeBoundaryValue--"
|
||||
"--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId1\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 63\r\n\r\n{\"server\":\"arango\",\"version\":\"3.3.devel\",\"license\":\"community\"}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: myId2\r\n\r\nHTTP/1.1 404 Not Found\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 79\r\n\r\n{\"error\":true,\"errorMessage\":\"collection not found\",\"code\":404,\"errorNum\":1203}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: someId\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 326\r\n\r\n{\"code\":200,\"error\":false,\"waitForSync\":false,\"type\":2,\"statusString\":\"loaded\",\"indexBuckets\":8,\"globallyUniqueId\":\"h66D61C8E346D/10004\",\"doCompact\":true,\"isSystem\":false,\"journalSize\":33554432,\"id\":\"10004\",\"isVolatile\":false,\"keyOptions\":{\"type\":\"traditional\",\"allowUserKeys\":true,\"lastValue\":0},\"name\":\"products\",\"status\":3}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: nextId\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nLocation: /_api/collection/products/figures\r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 833\r\n\r\n{\"code\":200,\"error\":false,\"waitForSync\":false,\"type\":2,\"statusString\":\"loaded\",\"status\":3,\"name\":\"products\",\"figures\":{\"indexes\":{\"count\":1,\"size\":32128},\"documentReferences\":0,\"waitingFor\":\"-\",\"alive\":{\"count\":0,\"size\":0},\"dead\":{\"count\":0,\"size\":0,\"deletion\":0},\"compactionStatus\":{\"message\":\"compaction not yet started\",\"time\":\"2017-12-19T09:24:48Z\",\"count\":0,\"filesCombined\":0,\"bytesRead\":0,\"bytesWritten\":0},\"datafiles\":{\"count\":0,\"fileSize\":0},\"journals\":{\"count\":0,\"fileSize\":0},\"compactors\":{\"count\":0,\"fileSize\":0},\"revisions\":{\"count\":0,\"size\":48192},\"lastTick\":0,\"uncollectedLogfileEntries\":0},\"doCompact\":true,\"globallyUniqueId\":\"h66D61C8E346D/10004\",\"count\":0,\"indexBuckets\":8,\"isSystem\":false,\"journalSize\":33554432,\"id\":\"10004\",\"isVolatile\":false,\"keyOptions\":{\"type\":\"traditional\",\"allowUserKeys\":true,\"lastValue\":0}}\r\n--SomeBoundaryValue\r\nContent-Type: application/x-arango-batchpart\r\nContent-Id: otherId\r\n\r\nHTTP/1.1 200 OK\r\nServer: \r\nConnection: \r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 39\r\n\r\n{\"code\":200,\"error\":false,\"id\":\"10004\"}\r\n--SomeBoundaryValue--"
|
||||
|
|
|
@ -7,18 +7,27 @@ EOF
|
|||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
x-content-type-options: nosniff
|
||||
location: <span class="hljs-regexp">/_db/</span>_system/_api/collection/testCollectionBasics
|
||||
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"9794"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"testCollectionBasics"</span>,
|
||||
<span class="hljs-string">"waitForSync"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"isVolatile"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"isSystem"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"status"</span> : <span class="hljs-number">3</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-number">2</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>,
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>
|
||||
<span class="hljs-string">"waitForSync"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-number">2</span>,
|
||||
<span class="hljs-string">"statusString"</span> : <span class="hljs-string">"loaded"</span>,
|
||||
<span class="hljs-string">"indexBuckets"</span> : <span class="hljs-number">8</span>,
|
||||
<span class="hljs-string">"globallyUniqueId"</span> : <span class="hljs-string">"h66D61C8E346D/10013"</span>,
|
||||
<span class="hljs-string">"doCompact"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"isSystem"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"journalSize"</span> : <span class="hljs-number">33554432</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"10013"</span>,
|
||||
<span class="hljs-string">"isVolatile"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"keyOptions"</span> : {
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"traditional"</span>,
|
||||
<span class="hljs-string">"allowUserKeys"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"lastValue"</span> : <span class="hljs-number">0</span>
|
||||
},
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"testCollectionBasics"</span>,
|
||||
<span class="hljs-string">"status"</span> : <span class="hljs-number">3</span>
|
||||
}
|
||||
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF
|
||||
{
|
||||
|
@ -30,16 +39,25 @@ EOF
|
|||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
x-content-type-options: nosniff
|
||||
location: <span class="hljs-regexp">/_db/</span>_system/_api/collection/testCollectionEdges
|
||||
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"9796"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"testCollectionEdges"</span>,
|
||||
<span class="hljs-string">"waitForSync"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"isVolatile"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"isSystem"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"status"</span> : <span class="hljs-number">3</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-number">3</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>,
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>
|
||||
<span class="hljs-string">"waitForSync"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-number">3</span>,
|
||||
<span class="hljs-string">"statusString"</span> : <span class="hljs-string">"loaded"</span>,
|
||||
<span class="hljs-string">"indexBuckets"</span> : <span class="hljs-number">8</span>,
|
||||
<span class="hljs-string">"globallyUniqueId"</span> : <span class="hljs-string">"h66D61C8E346D/10016"</span>,
|
||||
<span class="hljs-string">"doCompact"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"isSystem"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"journalSize"</span> : <span class="hljs-number">33554432</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"10016"</span>,
|
||||
<span class="hljs-string">"isVolatile"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"keyOptions"</span> : {
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"traditional"</span>,
|
||||
<span class="hljs-string">"allowUserKeys"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"lastValue"</span> : <span class="hljs-number">0</span>
|
||||
},
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"testCollectionEdges"</span>,
|
||||
<span class="hljs-string">"status"</span> : <span class="hljs-number">3</span>
|
||||
}
|
||||
|
|
|
@ -12,16 +12,27 @@ EOF
|
|||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
x-content-type-options: nosniff
|
||||
location: <span class="hljs-regexp">/_db/</span>_system/_api/collection/testCollectionUsers
|
||||
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"9806"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"testCollectionUsers"</span>,
|
||||
<span class="hljs-string">"waitForSync"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"isVolatile"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"isSystem"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"status"</span> : <span class="hljs-number">3</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-number">2</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>,
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>
|
||||
<span class="hljs-string">"waitForSync"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-number">2</span>,
|
||||
<span class="hljs-string">"statusString"</span> : <span class="hljs-string">"loaded"</span>,
|
||||
<span class="hljs-string">"indexBuckets"</span> : <span class="hljs-number">8</span>,
|
||||
<span class="hljs-string">"globallyUniqueId"</span> : <span class="hljs-string">"h66D61C8E346D/10027"</span>,
|
||||
<span class="hljs-string">"doCompact"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"isSystem"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"journalSize"</span> : <span class="hljs-number">33554432</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"10027"</span>,
|
||||
<span class="hljs-string">"isVolatile"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"keyOptions"</span> : {
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"autoincrement"</span>,
|
||||
<span class="hljs-string">"allowUserKeys"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"offset"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"increment"</span> : <span class="hljs-number">5</span>,
|
||||
<span class="hljs-string">"lastValue"</span> : <span class="hljs-number">0</span>
|
||||
},
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"testCollectionUsers"</span>,
|
||||
<span class="hljs-string">"status"</span> : <span class="hljs-number">3</span>
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
shell> curl -X DELETE --dump - http://localhost:8529/_api/collection/9812
|
||||
shell> curl -X DELETE --dump - http://localhost:8529/_api/collection/10034
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"9812"</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>,
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"10034"</span>
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
|||
x-content-type-options: nosniff
|
||||
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"9818"</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>,
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"10041"</span>
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue