mirror of https://gitee.com/bigwinds/arangodb
Follow new example names.
This commit is contained in:
parent
34c5598dba
commit
62f6d3dea1
|
@ -1,63 +1,63 @@
|
|||
arangosh> db.five.save({ name : <span class="hljs-string">"one"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/22426729"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"22426729"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"22426729"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3921452987"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3921452987"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3921452987"</span>
|
||||
}
|
||||
arangosh> db.five.save({ name : <span class="hljs-string">"two"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/22623337"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"22623337"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"22623337"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3921649595"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3921649595"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3921649595"</span>
|
||||
}
|
||||
arangosh> db.five.save({ name : <span class="hljs-string">"three"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/22819945"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"22819945"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"22819945"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3921846203"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3921846203"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3921846203"</span>
|
||||
}
|
||||
arangosh> db.five.save({ name : <span class="hljs-string">"four"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/23016553"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"23016553"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"23016553"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3922042811"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3922042811"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3922042811"</span>
|
||||
}
|
||||
arangosh> db.five.save({ name : <span class="hljs-string">"five"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/23213161"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"23213161"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"23213161"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3922239419"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3922239419"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3922239419"</span>
|
||||
}
|
||||
arangosh> db.five.all().toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"four"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/23016553"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"23016553"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"23016553"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"two"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/22623337"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"22623337"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"22623337"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"five"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/23213161"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"23213161"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"23213161"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3922042811"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3922042811"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3922042811"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"three"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/22819945"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"22819945"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"22819945"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3921846203"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3921846203"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3921846203"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"five"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3922239419"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3922239419"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3922239419"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"two"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3921649595"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3921649595"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3921649595"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"one"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/22426729"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"22426729"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"22426729"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3921452987"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3921452987"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3921452987"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,45 +1,45 @@
|
|||
arangosh> db.five.save({ name : <span class="hljs-string">"one"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/23802985"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"23802985"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"23802985"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3922829243"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3922829243"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3922829243"</span>
|
||||
}
|
||||
arangosh> db.five.save({ name : <span class="hljs-string">"two"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/23999593"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"23999593"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"23999593"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3923025851"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3923025851"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3923025851"</span>
|
||||
}
|
||||
arangosh> db.five.save({ name : <span class="hljs-string">"three"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/24196201"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"24196201"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"24196201"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3923222459"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3923222459"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3923222459"</span>
|
||||
}
|
||||
arangosh> db.five.save({ name : <span class="hljs-string">"four"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/24392809"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"24392809"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"24392809"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3923419067"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3923419067"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3923419067"</span>
|
||||
}
|
||||
arangosh> db.five.save({ name : <span class="hljs-string">"five"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/24589417"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"24589417"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"24589417"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3923615675"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3923615675"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3923615675"</span>
|
||||
}
|
||||
arangosh> db.five.all().limit(<span class="hljs-number">2</span>).toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"five"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/24589417"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"24589417"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"24589417"</span>
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"one"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3922829243"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3922829243"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3922829243"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"one"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/23802985"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"23802985"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"23802985"</span>
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"four"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/3923419067"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3923419067"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3923419067"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,40 +1,40 @@
|
|||
arangosh> db.users.save({ name: <span class="hljs-string">"Gerhard"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/25179241"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"25179241"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"25179241"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/3924205499"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3924205499"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3924205499"</span>
|
||||
}
|
||||
arangosh> db.users.save({ name: <span class="hljs-string">"Helmut"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/25441385"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"25441385"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"25441385"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/3924467643"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3924467643"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3924467643"</span>
|
||||
}
|
||||
arangosh> db.users.save({ name: <span class="hljs-string">"Angela"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/25637993"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"25637993"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"25637993"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/3924664251"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3924664251"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3924664251"</span>
|
||||
}
|
||||
arangosh> db.users.all().toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Gerhard"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/25179241"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"25179241"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"25179241"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Angela"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/25637993"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"25637993"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"25637993"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/3924205499"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3924205499"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3924205499"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Helmut"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/25441385"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"25441385"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"25441385"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/3924467643"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3924467643"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3924467643"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Angela"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/3924664251"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3924664251"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3924664251"</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">"_id"</span> : <span class="hljs-string">"users/25179241"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"25179241"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"25179241"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/3924205499"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3924205499"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3924205499"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Gerhard"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,26 +1,26 @@
|
|||
arangosh> db.users.save({ name: <span class="hljs-string">"Gerhard"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/26883177"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"26883177"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"26883177"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/3925909435"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3925909435"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3925909435"</span>
|
||||
}
|
||||
arangosh> db.users.save({ name: <span class="hljs-string">"Helmut"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/27145321"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"27145321"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"27145321"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/3926171579"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3926171579"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3926171579"</span>
|
||||
}
|
||||
arangosh> db.users.save({ name: <span class="hljs-string">"Angela"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/27341929"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"27341929"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"27341929"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/3926368187"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3926368187"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3926368187"</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">"_id"</span> : <span class="hljs-string">"users/27341929"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"27341929"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"27341929"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/3926368187"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3926368187"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3926368187"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Angela"</span>
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
arangosh> db.old.ensureIndex({ type: <span class="hljs-string">"skiplist"</span>, fields: [ <span class="hljs-string">"age"</span> ] });
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"old/28193897"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"old/3927220155"</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"age"</span>
|
||||
|
@ -12,34 +12,34 @@ arangosh> db.old.ensureIndex({ type: <span class="hljs-string">"skiplist"</sp
|
|||
}
|
||||
arangosh> db.old.save({ age: <span class="hljs-number">15</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/28456041"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"28456041"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"28456041"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/3927482299"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3927482299"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3927482299"</span>
|
||||
}
|
||||
arangosh> db.old.save({ age: <span class="hljs-number">25</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/28652649"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"28652649"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"28652649"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/3927678907"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3927678907"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3927678907"</span>
|
||||
}
|
||||
arangosh> db.old.save({ age: <span class="hljs-number">30</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/28849257"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"28849257"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"28849257"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/3927875515"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3927875515"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3927875515"</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">"_id"</span> : <span class="hljs-string">"old/28456041"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"28456041"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"28456041"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/3927482299"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3927482299"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3927482299"</span>,
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">15</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/28652649"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"28652649"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"28652649"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/3927678907"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3927678907"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3927678907"</span>,
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">25</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
arangosh> db.old.ensureIndex({ type: <span class="hljs-string">"skiplist"</span>, fields: [ <span class="hljs-string">"age"</span> ] });
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"old/29570153"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"old/3928596411"</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"age"</span>
|
||||
|
@ -12,40 +12,40 @@ arangosh> db.old.ensureIndex({ type: <span class="hljs-string">"skiplist"</sp
|
|||
}
|
||||
arangosh> db.old.save({ age: <span class="hljs-number">15</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/29832297"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"29832297"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"29832297"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/3928858555"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3928858555"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3928858555"</span>
|
||||
}
|
||||
arangosh> db.old.save({ age: <span class="hljs-number">25</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/30028905"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"30028905"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"30028905"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/3929055163"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3929055163"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3929055163"</span>
|
||||
}
|
||||
arangosh> db.old.save({ age: <span class="hljs-number">30</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/30225513"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"30225513"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"30225513"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/3929251771"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3929251771"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3929251771"</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">"_id"</span> : <span class="hljs-string">"old/29832297"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"29832297"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"29832297"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/3928858555"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3928858555"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3928858555"</span>,
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">15</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/30028905"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"30028905"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"30028905"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/3929055163"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3929055163"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3929055163"</span>,
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">25</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/30225513"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"30225513"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"30225513"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/3929251771"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3929251771"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3929251771"</span>,
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">30</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
arangosh> db.geo.ensureIndex({ type: <span class="hljs-string">"geo"</span>, fields: [ <span class="hljs-string">"loc"</span> ] });
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"geo/30946409"</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"geo1"</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"loc"</span>
|
||||
],
|
||||
<span class="hljs-string">"geoJson"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"constraint"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"unique"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"ignoreNull"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"sparse"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"isNewlyCreated"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">201</span>
|
||||
}
|
||||
arangosh> <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">-90</span>; i <= <span class="hljs-number">90</span>; i += <span class="hljs-number">10</span>) {
|
||||
........> <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> j = <span class="hljs-number">-180</span>; j <= <span class="hljs-number">180</span>; j += <span class="hljs-number">10</span>) {
|
||||
........> db.geo.save({
|
||||
........> name : <span class="hljs-string">"Name/"</span> + i + <span class="hljs-string">"/"</span> + j,
|
||||
........> loc: [ i, j ] });
|
||||
........> } }
|
||||
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">"_id"</span> : <span class="hljs-string">"geo/100349033"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"100349033"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"100349033"</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>,
|
||||
<span class="hljs-number">0</span>
|
||||
]
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/93074537"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"93074537"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"93074537"</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>,
|
||||
<span class="hljs-number">0</span>
|
||||
]
|
||||
}
|
||||
]
|
|
@ -1,46 +0,0 @@
|
|||
arangosh> db.geo.ensureIndex({ type: <span class="hljs-string">"geo"</span>, fields: [ <span class="hljs-string">"loc"</span> ] });
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"geo/170079337"</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"geo1"</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"loc"</span>
|
||||
],
|
||||
<span class="hljs-string">"geoJson"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"constraint"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"unique"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"ignoreNull"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"sparse"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"isNewlyCreated"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">201</span>
|
||||
}
|
||||
arangosh> <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">-90</span>; i <= <span class="hljs-number">90</span>; i += <span class="hljs-number">10</span>) {
|
||||
........> <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> j = <span class="hljs-number">-180</span>; j <= <span class="hljs-number">180</span>; j += <span class="hljs-number">10</span>) {
|
||||
........> db.geo.save({
|
||||
........> name : <span class="hljs-string">"Name/"</span> + i + <span class="hljs-string">"/"</span> + j,
|
||||
........> loc: [ i, j ] });
|
||||
........> } }
|
||||
arangosh> db.geo.near(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>).distance().limit(<span class="hljs-number">2</span>).toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/239481961"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"239481961"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"239481961"</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>,
|
||||
<span class="hljs-number">0</span>
|
||||
],
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">0</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/232207465"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"232207465"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"232207465"</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>,
|
||||
<span class="hljs-number">0</span>
|
||||
],
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>
|
||||
}
|
||||
]
|
|
@ -1,105 +0,0 @@
|
|||
arangosh> <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">-90</span>; i <= <span class="hljs-number">90</span>; i += <span class="hljs-number">10</span>) {
|
||||
........> <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> j = <span class="hljs-number">-180</span>; j <= <span class="hljs-number">180</span>; j += <span class="hljs-number">10</span>) {
|
||||
........> db.geo.save({ name : <span class="hljs-string">"Name/"</span> + i + <span class="hljs-string">"/"</span> + j, loc: [ i, j ] }); } }
|
||||
arangosh> db.geo.within(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">2000</span> * <span class="hljs-number">1000</span>).distance().toArray();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/378614889"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"378614889"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"378614889"</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>,
|
||||
<span class="hljs-number">0</span>
|
||||
],
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">0</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/371340393"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"371340393"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"371340393"</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>,
|
||||
<span class="hljs-number">0</span>
|
||||
],
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/378811497"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"378811497"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"378811497"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Name/0/10"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">10</span>
|
||||
],
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/385889385"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"385889385"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"385889385"</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>,
|
||||
<span class="hljs-number">0</span>
|
||||
],
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/378418281"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"378418281"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"378418281"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Name/0/-10"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">0</span>,
|
||||
<span class="hljs-number">-10</span>
|
||||
],
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/371537001"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"371537001"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"371537001"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Name/-10/10"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">-10</span>,
|
||||
<span class="hljs-number">10</span>
|
||||
],
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1568520.556798576</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/386085993"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"386085993"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"386085993"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Name/10/10"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">10</span>,
|
||||
<span class="hljs-number">10</span>
|
||||
],
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1568520.556798576</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/371143785"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"371143785"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"371143785"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Name/-10/-10"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">-10</span>,
|
||||
<span class="hljs-number">-10</span>
|
||||
],
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1568520.556798576</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/385692777"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"385692777"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"385692777"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Name/10/-10"</span>,
|
||||
<span class="hljs-string">"loc"</span> : [
|
||||
<span class="hljs-number">10</span>,
|
||||
<span class="hljs-number">-10</span>
|
||||
],
|
||||
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1568520.556798576</span>
|
||||
}
|
||||
]
|
|
@ -1,8 +1,8 @@
|
|||
arangosh> db.example.save({ Hello : <span class="hljs-string">"world"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/449262697"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"449262697"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"449262697"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3930890171"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3930890171"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3930890171"</span>
|
||||
}
|
||||
arangosh> db.example.replaceByExample({ Hello: <span class="hljs-string">"world"</span> }, {Hello: <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({ Hello : <span class="hljs-string">"world"</span>, foo : <span class="hljs-string">"bar"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/450180201"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"450180201"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"450180201"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3931807675"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3931807675"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3931807675"</span>
|
||||
}
|
||||
arangosh> db.example.updateByExample({ Hello: <span class="hljs-string">"world"</span> }, { Hello: <span class="hljs-string">"foo"</span>, World: <span class="hljs-string">"bar"</span> }, <span class="hljs-literal">false</span>);
|
||||
<span class="hljs-number">1</span>
|
||||
arangosh> db.example.byExample({ Hello: <span class="hljs-string">"foo"</span> }).toArray()
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/450180201"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"450180201"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"450507881"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3931807675"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3931807675"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3932135355"</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,9 +1,9 @@
|
|||
arangosh> db._create(<span class="hljs-string">"mycollection"</span>)
|
||||
[ArangoCollection <span class="hljs-number">451228777</span>, <span class="hljs-string">"mycollection"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">3932856251</span>, <span class="hljs-string">"mycollection"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
arangosh> db.mycollection.save({ _key: <span class="hljs-string">"testKey"</span>, Hello : <span class="hljs-string">"World"</span> })
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"mycollection/testKey"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"451556457"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3933183931"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"testKey"</span>
|
||||
}
|
||||
arangosh> db._query(<span class="hljs-string">'FOR my IN mycollection RETURN my._key'</span>).toArray()
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
arangosh> db._create(<span class="hljs-string">"example"</span>);
|
||||
[ArangoCollection <span class="hljs-number">451753065</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">3933380539</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
|
|
|
@ -5,7 +5,7 @@ arangosh> db._query(aqlQuery<span class="hljs-string">`FOR doc IN <span class
|
|||
{
|
||||
<span class="hljs-string">"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">"_rev"</span> : <span class="hljs-string">"451556457"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3933183931"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"testKey"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
arangosh> db.example.unload();
|
||||
arangosh> db.example;
|
||||
[ArangoCollection <span class="hljs-number">451753065</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status unloaded)]
|
||||
[ArangoCollection <span class="hljs-number">3933380539</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status unloaded)]
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
arangosh> db.example.save({ Hello : <span class="hljs-string">"World"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/465646697"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"465646697"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"465646697"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3947274171"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3947274171"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3947274171"</span>
|
||||
}
|
||||
arangosh> db.example.save({ <span class="hljs-string">"name"</span> : <span class="hljs-string">"John Doe"</span>, <span class="hljs-string">"age"</span> : <span class="hljs-number">29</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/466039913"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"466039913"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"466039913"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3947667387"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3947667387"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3947667387"</span>
|
||||
}
|
||||
arangosh> db.example.save({ <span class="hljs-string">"name"</span> : <span class="hljs-string">"Jane Smith"</span>, <span class="hljs-string">"age"</span> : <span class="hljs-number">31</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/466236521"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"466236521"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"466236521"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3947863995"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3947863995"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3947863995"</span>
|
||||
}
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
arangosh> db.example.toArray()
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"Hello"</span> : <span class="hljs-string">"World"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/465646697"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"465646697"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"465646697"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">31</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Jane Smith"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/466236521"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"466236521"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"466236521"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3947863995"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3947863995"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3947863995"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"Hello"</span> : <span class="hljs-string">"World"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3947274171"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3947274171"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3947274171"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">29</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"John Doe"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/466039913"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"466039913"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"466039913"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3947667387"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3947667387"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3947667387"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -3,8 +3,8 @@ arangosh> db._query(<span class="hljs-string">'FOR user IN example FILTER use
|
|||
{
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">31</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Jane Smith"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/466236521"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"466236521"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"466236521"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3947863995"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3947863995"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3947863995"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
arangosh> db.example.byExample({ name: <span class="hljs-string">"Jane Smith"</span> }).toArray()
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/466236521"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"466236521"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"466236521"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3947863995"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3947863995"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3947863995"</span>,
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">31</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Jane Smith"</span>
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@ arangosh> db._query(<span class="hljs-string">'FOR user IN example FILTER use
|
|||
{
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">31</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Jane Smith"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/466236521"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"466236521"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"466236521"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3947863995"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3947863995"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3947863995"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -2,17 +2,17 @@ arangosh> db.example.remove(db.example.byExample({ name: <span class="hljs-st
|
|||
<span class="hljs-literal">true</span>
|
||||
arangosh> db.example.toArray()
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"Hello"</span> : <span class="hljs-string">"World"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/465646697"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"465646697"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"465646697"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">31</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Jane Smith"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/466236521"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"466236521"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"466236521"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3947863995"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3947863995"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3947863995"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"Hello"</span> : <span class="hljs-string">"World"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/3947274171"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3947274171"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3947274171"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -30,7 +30,7 @@ arangosh> stmt.explain();
|
|||
<span class="hljs-string">"indexes"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"hash"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"537705"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"761787"</span>,
|
||||
<span class="hljs-string">"unique"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"sparse"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"selectivityEstimate"</span> : <span class="hljs-number">1</span>,
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
arangosh> db._create("test");
|
||||
[ArangoCollection 498611305, "test" (type document, status loaded)]
|
||||
[ArangoCollection 3977027515, "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" ] });
|
||||
{
|
||||
"id" : "test/518599785",
|
||||
"id" : "test/3997015995",
|
||||
"type" : "skiplist",
|
||||
"fields" : [
|
||||
"value"
|
||||
|
|
|
@ -28,7 +28,7 @@ arangosh> stmt.explain();
|
|||
<span class="hljs-string">"indexes"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"518599785"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"3997015995"</span>,
|
||||
<span class="hljs-string">"unique"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"sparse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
|
|
|
@ -27,7 +27,7 @@ arangosh> stmt.explain({ allPlans: <span class="hljs-literal">true</span> });
|
|||
<span class="hljs-string">"indexes"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"518599785"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"3997015995"</span>,
|
||||
<span class="hljs-string">"unique"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"sparse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
|
|
|
@ -26,7 +26,7 @@ arangosh> stmt.explain({ optimizer: { rules: [ <span class="hljs-string">"-us
|
|||
<span class="hljs-string">"indexes"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"518599785"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"3997015995"</span>,
|
||||
<span class="hljs-string">"unique"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"sparse"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
|
|
|
@ -15,7 +15,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-number">6.9528</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"germanCity/Cologne"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"521745513"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3999571899"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Cologne"</span>
|
||||
},
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-number">10.0014</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"germanCity/Hamburg"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"521942121"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3999768507"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Hamburg"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -19,7 +19,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-number">4.84</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Lyon"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"522466409"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4000292795"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Lyon"</span>
|
||||
}
|
||||
},
|
||||
|
@ -33,7 +33,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-number">2.3508</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Paris"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"522663017"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4000489403"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Paris"</span>
|
||||
}
|
||||
},
|
||||
|
@ -47,7 +47,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-number">2.3508</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Paris"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"522663017"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4000489403"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Paris"</span>
|
||||
}
|
||||
},
|
||||
|
@ -61,7 +61,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-number">4.84</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Lyon"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"522466409"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4000292795"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Lyon"</span>
|
||||
}
|
||||
},
|
||||
|
@ -75,7 +75,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-number">6.9528</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"germanCity/Cologne"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"521745513"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3999571899"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Cologne"</span>
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-number">4.84</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Lyon"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"522466409"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4000292795"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Lyon"</span>
|
||||
},
|
||||
{
|
||||
|
@ -31,7 +31,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-number">2.3508</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Paris"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"522663017"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4000489403"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Paris"</span>
|
||||
}
|
||||
]
|
||||
|
@ -47,7 +47,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-number">2.3508</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Paris"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"522663017"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4000489403"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Paris"</span>
|
||||
},
|
||||
{
|
||||
|
@ -58,7 +58,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-number">4.84</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Lyon"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"522466409"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4000292795"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Lyon"</span>
|
||||
},
|
||||
{
|
||||
|
@ -69,7 +69,7 @@ arangosh> db._query(<span class="hljs-string">`FOR startCity IN
|
|||
<span class="hljs-number">6.9528</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"germanCity/Cologne"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"521745513"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"3999571899"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Cologne"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
arangosh> col = db.example;
|
||||
[ArangoCollection <span class="hljs-number">526857321</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">4004683707</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">526857321</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status unloaded)]
|
||||
[ArangoCollection <span class="hljs-number">4004683707</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">527053929</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">4004880315</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">527185001</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">4005011387</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
arangosh> v1 = db.vertex.insert({ name : <span class="hljs-string">"vertex 1"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/527512681"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"527512681"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"527512681"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/4005339067"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4005339067"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4005339067"</span>
|
||||
}
|
||||
arangosh> v2 = db.vertex.insert({ name : <span class="hljs-string">"vertex 2"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/527709289"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"527709289"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"527709289"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/4005535675"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4005535675"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4005535675"</span>
|
||||
}
|
||||
arangosh> e1 = db.relation.insert(v1, v2, { label : <span class="hljs-string">"knows"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/528036969"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"528036969"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"528036969"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/4005863355"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4005863355"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4005863355"</span>
|
||||
}
|
||||
arangosh> db._document(e1);
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/528036969"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"528036969"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"528036969"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/527512681"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/527709289"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/4005863355"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4005863355"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4005863355"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/4005339067"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/4005535675"</span>
|
||||
}
|
||||
|
|
|
@ -1,34 +1,34 @@
|
|||
arangosh> db._create(<span class="hljs-string">"vertex"</span>);
|
||||
[ArangoCollection <span class="hljs-number">528364649</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">4006191035</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">528495721</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">4006322107</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
arangosh> myGraph.v1 = db.vertex.insert({ name : <span class="hljs-string">"vertex 1"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/528823401"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"528823401"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"528823401"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/4006649787"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4006649787"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4006649787"</span>
|
||||
}
|
||||
arangosh> myGraph.v2 = db.vertex.insert({ name : <span class="hljs-string">"vertex 2"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/529020009"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"529020009"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"529020009"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/4006846395"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4006846395"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4006846395"</span>
|
||||
}
|
||||
arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2,
|
||||
........> { label : <span class="hljs-string">"knows"</span>});
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/529347689"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"529347689"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"529347689"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/4007174075"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4007174075"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4007174075"</span>
|
||||
}
|
||||
arangosh> db._document(myGraph.e1);
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/529347689"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"529347689"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"529347689"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/528823401"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/529020009"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/4007174075"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4007174075"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4007174075"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/4006649787"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/4006846395"</span>
|
||||
}
|
||||
arangosh> db.relation.edges(myGraph.e1._id);
|
||||
[ ]
|
||||
|
|
|
@ -1,34 +1,34 @@
|
|||
arangosh> db._create(<span class="hljs-string">"vertex"</span>);
|
||||
[ArangoCollection <span class="hljs-number">529740905</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">4007567291</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">529871977</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">4007698363</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
arangosh> myGraph.v1 = db.vertex.insert({ name : <span class="hljs-string">"vertex 1"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/530199657"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"530199657"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"530199657"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/4008026043"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4008026043"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4008026043"</span>
|
||||
}
|
||||
arangosh> myGraph.v2 = db.vertex.insert({ name : <span class="hljs-string">"vertex 2"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/530396265"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"530396265"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"530396265"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/4008222651"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4008222651"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4008222651"</span>
|
||||
}
|
||||
arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2,
|
||||
........> { label : <span class="hljs-string">"knows"</span>});
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/530723945"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"530723945"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"530723945"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/4008550331"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4008550331"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4008550331"</span>
|
||||
}
|
||||
arangosh> db._document(myGraph.e1);
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/530723945"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"530723945"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"530723945"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/530199657"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/530396265"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/4008550331"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4008550331"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4008550331"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/4008026043"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/4008222651"</span>
|
||||
}
|
||||
arangosh> db.relation.inEdges(myGraph.v1._id);
|
||||
[ ]
|
||||
|
@ -36,10 +36,10 @@ arangosh> db.relation.inEdges(myGraph.v2._id);
|
|||
[
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/530723945"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"530723945"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"530723945"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/530199657"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/530396265"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/4008550331"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4008550331"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4008550331"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/4008026043"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/4008222651"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,44 +1,44 @@
|
|||
arangosh> db._create(<span class="hljs-string">"vertex"</span>);
|
||||
[ArangoCollection <span class="hljs-number">531182697</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">4009009083</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">531313769</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
[ArangoCollection <span class="hljs-number">4009140155</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
|
||||
arangosh> myGraph.v1 = db.vertex.insert({ name : <span class="hljs-string">"vertex 1"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/531641449"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"531641449"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"531641449"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/4009467835"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4009467835"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4009467835"</span>
|
||||
}
|
||||
arangosh> myGraph.v2 = db.vertex.insert({ name : <span class="hljs-string">"vertex 2"</span> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/531838057"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"531838057"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"531838057"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/4009664443"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4009664443"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4009664443"</span>
|
||||
}
|
||||
arangosh> myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2,
|
||||
........> { label : <span class="hljs-string">"knows"</span>});
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/532165737"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"532165737"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"532165737"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/4009992123"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4009992123"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4009992123"</span>
|
||||
}
|
||||
arangosh> db._document(myGraph.e1);
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/532165737"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"532165737"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"532165737"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/531641449"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/531838057"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/4009992123"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4009992123"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4009992123"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/4009467835"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/4009664443"</span>
|
||||
}
|
||||
arangosh> db.relation.outEdges(myGraph.v1._id);
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/532165737"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"532165737"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"532165737"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/531641449"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/531838057"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/4009992123"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4009992123"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4009992123"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/4009467835"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/4009664443"</span>
|
||||
}
|
||||
]
|
||||
arangosh> db.relation.outEdges(myGraph.v2._id);
|
||||
|
|
|
@ -5,170 +5,170 @@ arangosh> db.circles.toArray();
|
|||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"5"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/E"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"534525033"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4012548027"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"E"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"6"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/F"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"534721641"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4012744635"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"F"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"3"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/C"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"534131817"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4012154811"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"C"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"11"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/K"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"535704681"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4013727675"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"K"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"4"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/D"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"534328425"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4012351419"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"D"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"9"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/I"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"535311465"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4013334459"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"I"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"1"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/A"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"533738601"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4011761595"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"A"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"2"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/B"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"533935209"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4011958203"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"B"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"10"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/J"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"535508073"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4013531067"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"J"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"7"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/G"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"534918249"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4012941243"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"G"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"label"</span> : <span class="hljs-string">"8"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/H"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"535114857"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4013137851"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"H"</span>
|
||||
}
|
||||
]
|
||||
arangosh> db.edges.toArray();
|
||||
[
|
||||
{
|
||||
<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">"_id"</span> : <span class="hljs-string">"edges/536949865"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"536949865"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"536949865"</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">"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">"_id"</span> : <span class="hljs-string">"edges/536556649"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"536556649"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"536556649"</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">"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">"_id"</span> : <span class="hljs-string">"edges/537736297"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"537736297"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"537736297"</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">"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">"_id"</span> : <span class="hljs-string">"edges/537932905"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"537932905"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"537932905"</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">"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">"_id"</span> : <span class="hljs-string">"edges/537343081"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"537343081"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"537343081"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/4015366075"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4015366075"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4015366075"</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">"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">"_id"</span> : <span class="hljs-string">"edges/537539689"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"537539689"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"537539689"</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">"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">"_id"</span> : <span class="hljs-string">"edges/536360041"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"536360041"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"536360041"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/4014383035"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4014383035"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4014383035"</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">"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">"_id"</span> : <span class="hljs-string">"edges/536753257"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"536753257"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"536753257"</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">"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">"_id"</span> : <span class="hljs-string">"edges/536163433"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"536163433"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"536163433"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/4014186427"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4014186427"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4014186427"</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">"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">"_id"</span> : <span class="hljs-string">"edges/4015562683"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4015562683"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4015562683"</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">"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">"_id"</span> : <span class="hljs-string">"edges/4014579643"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4014579643"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4014579643"</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">"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">"_id"</span> : <span class="hljs-string">"edges/4014776251"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4014776251"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4014776251"</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">"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">"_id"</span> : <span class="hljs-string">"edges/4014972859"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4014972859"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4014972859"</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">"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">"_id"</span> : <span class="hljs-string">"edges/4015955899"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4015955899"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4015955899"</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">"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">"_id"</span> : <span class="hljs-string">"edges/537146473"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"537146473"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"537146473"</span>,
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/4015169467"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4015169467"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4015169467"</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">"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">"_id"</span> : <span class="hljs-string">"edges/4015759291"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4015759291"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4015759291"</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>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -8,7 +8,7 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/541013097"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"541013097"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"541013097"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4018577339"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4018577339"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4018577339"</span>
|
||||
}
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation <<EOF
|
||||
{
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"friend"</span>,
|
||||
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"female/alice"</span>,
|
||||
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"female/diana"</span>
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">544814185</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>,
|
||||
<span class="hljs-string">"edge"</span> : {
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/544814185"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"544814185"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"544814185"</span>
|
||||
}
|
||||
}
|
|
@ -1,50 +0,0 @@
|
|||
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge <<EOF
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"lives_in"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"city"</span>
|
||||
]
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">201</span> Created
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">546321513</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">201</span>,
|
||||
<span class="hljs-string">"graph"</span> : {
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"social"</span>,
|
||||
<span class="hljs-string">"edgeDefinitions"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"relation"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
]
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"lives_in"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"city"</span>
|
||||
]
|
||||
}
|
||||
],
|
||||
<span class="hljs-string">"orphanCollections"</span> : [ ],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"546321513"</span>
|
||||
}
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/male <<EOF
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Francis"</span>
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">553137257</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>,
|
||||
<span class="hljs-string">"vertex"</span> : {
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"male/553137257"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"553137257"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"553137257"</span>
|
||||
}
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex <<EOF
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"otherVertices"</span>
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">201</span> Created
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">554644585</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">201</span>,
|
||||
<span class="hljs-string">"graph"</span> : {
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"social"</span>,
|
||||
<span class="hljs-string">"edgeDefinitions"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"relation"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
]
|
||||
}
|
||||
],
|
||||
<span class="hljs-string">"orphanCollections"</span> : [
|
||||
<span class="hljs-string">"otherVertices"</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"554644585"</span>
|
||||
}
|
||||
}
|
|
@ -1,42 +0,0 @@
|
|||
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial <<EOF
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"myGraph"</span>,
|
||||
<span class="hljs-string">"edgeDefinitions"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"edges"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"startVertices"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"endVertices"</span>
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">201</span> Created
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">559035497</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">201</span>,
|
||||
<span class="hljs-string">"graph"</span> : {
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"myGraph"</span>,
|
||||
<span class="hljs-string">"edgeDefinitions"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"edges"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"startVertices"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"endVertices"</span>
|
||||
]
|
||||
}
|
||||
],
|
||||
<span class="hljs-string">"orphanCollections"</span> : [ ],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/myGraph"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"559035497"</span>
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>,
|
||||
<span class="hljs-string">"removed"</span> : <span class="hljs-literal">true</span>
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>,
|
||||
<span class="hljs-string">"removed"</span> : <span class="hljs-literal">true</span>
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social?dropCollections=true
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
<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">"removed"</span> : <span class="hljs-literal">true</span>
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/edge/relation
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">572470377</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">"graph"</span> : {
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"social"</span>,
|
||||
<span class="hljs-string">"edgeDefinitions"</span> : [ ],
|
||||
<span class="hljs-string">"orphanCollections"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"572470377"</span>
|
||||
}
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
shell> curl --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">577647721</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">"edge"</span> : {
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/aliceAndBob"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"aliceAndBob"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"577647721"</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">"type"</span> : <span class="hljs-string">"married"</span>
|
||||
}
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
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
|
||||
etag: <span class="hljs-number">579941481</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">"graph"</span> : {
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"myGraph"</span>,
|
||||
<span class="hljs-string">"edgeDefinitions"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"edges"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"startVertices"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"endVertices"</span>
|
||||
]
|
||||
}
|
||||
],
|
||||
<span class="hljs-string">"orphanCollections"</span> : [ ],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/myGraph"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"579941481"</span>
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
shell> curl --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">581776489</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">"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">"581776489"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Alice"</span>
|
||||
}
|
||||
}
|
|
@ -1,67 +0,0 @@
|
|||
shell> curl --dump - http://localhost:8529/_api/gharial
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>,
|
||||
<span class="hljs-string">"graphs"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"social"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"585118825"</span>,
|
||||
<span class="hljs-string">"edgeDefinitions"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"relation"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
]
|
||||
}
|
||||
],
|
||||
<span class="hljs-string">"orphanCollections"</span> : [ ]
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/routeplanner"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"routeplanner"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"588199017"</span>,
|
||||
<span class="hljs-string">"orphanCollections"</span> : [ ],
|
||||
<span class="hljs-string">"edgeDefinitions"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"germanHighway"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"germanCity"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"germanCity"</span>
|
||||
]
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"frenchHighway"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"frenchCity"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"frenchCity"</span>
|
||||
]
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"internationalHighway"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"frenchCity"</span>,
|
||||
<span class="hljs-string">"germanCity"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"frenchCity"</span>,
|
||||
<span class="hljs-string">"germanCity"</span>
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
shell> curl --dump - http://localhost:8529/_api/gharial/social/edge
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
<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">"collections"</span> : [
|
||||
<span class="hljs-string">"relation"</span>
|
||||
]
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
shell> curl --dump - http://localhost:8529/_api/gharial/social/vertex
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
<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">"collections"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
]
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice <<EOF
|
||||
{
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">26</span>
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">605303913</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>,
|
||||
<span class="hljs-string">"vertex"</span> : {
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"female/alice"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"605303913"</span>,
|
||||
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"603141225"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"alice"</span>
|
||||
}
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob <<EOF
|
||||
{
|
||||
<span class="hljs-string">"since"</span> : <span class="hljs-string">"01.01.2001"</span>
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">609301609</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>,
|
||||
<span class="hljs-string">"edge"</span> : {
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/aliceAndBob"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"609301609"</span>,
|
||||
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"608187497"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"aliceAndBob"</span>
|
||||
}
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation/aliceAndBob <<EOF
|
||||
{
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"divorced"</span>
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">613168233</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>,
|
||||
<span class="hljs-string">"edge"</span> : {
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/aliceAndBob"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"613168233"</span>,
|
||||
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"612185193"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"aliceAndBob"</span>
|
||||
}
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/vertex/otherVertices
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">617034857</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">"graph"</span> : {
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"social"</span>,
|
||||
<span class="hljs-string">"edgeDefinitions"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"relation"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
]
|
||||
}
|
||||
],
|
||||
<span class="hljs-string">"orphanCollections"</span> : [ ],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"617034857"</span>
|
||||
}
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
shell> curl -X DELETE --dump - http://localhost:8529/_api/gharial/social/vertex/male
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">400</span> Bad Request
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">400</span>,
|
||||
<span class="hljs-string">"errorNum"</span> : <span class="hljs-number">1928</span>,
|
||||
<span class="hljs-string">"errorMessage"</span> : <span class="hljs-string">"not in orphan collection"</span>
|
||||
}
|
|
@ -1,45 +0,0 @@
|
|||
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/edge/relation <<EOF
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"relation"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>,
|
||||
<span class="hljs-string">"animal"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>,
|
||||
<span class="hljs-string">"animal"</span>
|
||||
]
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">622408809</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">"graph"</span> : {
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"social"</span>,
|
||||
<span class="hljs-string">"edgeDefinitions"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"relation"</span>,
|
||||
<span class="hljs-string">"from"</span> : [
|
||||
<span class="hljs-string">"animal"</span>,
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
],
|
||||
<span class="hljs-string">"to"</span> : [
|
||||
<span class="hljs-string">"animal"</span>,
|
||||
<span class="hljs-string">"female"</span>,
|
||||
<span class="hljs-string">"male"</span>
|
||||
]
|
||||
}
|
||||
],
|
||||
<span class="hljs-string">"orphanCollections"</span> : [ ],
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"622408809"</span>
|
||||
}
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/social/vertex/female/alice <<EOF
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Alice Cooper"</span>,
|
||||
<span class="hljs-string">"age"</span> : <span class="hljs-number">26</span>
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
|
||||
content-type: application/json
|
||||
etag: <span class="hljs-number">629290089</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>,
|
||||
<span class="hljs-string">"vertex"</span> : {
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"female/alice"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"629290089"</span>,
|
||||
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"626996329"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"alice"</span>
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
arangosh> db.example.ensureIndex({ type: <span class="hljs-string">"skiplist"</span>, fields: [ <span class="hljs-string">"a"</span>, <span class="hljs-string">"b"</span> ] });
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/630469737"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/4019494843"</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"a"</span>,
|
||||
|
@ -15,7 +15,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/630469737"</span>
|
||||
<span class="hljs-string">"example/4019494843"</span>
|
||||
]
|
||||
arangosh> db._index(indexInfo[<span class="hljs-number">0</span>])
|
||||
{
|
||||
|
@ -31,7 +31,7 @@ arangosh> db._index(indexInfo[<span class="hljs-number">0</span>])
|
|||
}
|
||||
arangosh> db._index(indexInfo[<span class="hljs-number">1</span>])
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/630469737"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/4019494843"</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"a"</span>,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
arangosh> <span class="hljs-keyword">var</span> explain = <span class="hljs-built_in">require</span>(<span class="hljs-string">"@arangodb/aql/explainer"</span>).explain;
|
||||
arangosh> db.example.ensureIndex({ type: <span class="hljs-string">"skiplist"</span>, fields: [ <span class="hljs-string">"a"</span>, <span class="hljs-string">"b"</span> ] });
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/631190633"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/4020215739"</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
|
||||
<span class="hljs-string">"fields"</span> : [
|
||||
<span class="hljs-string">"a"</span>,
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
shell> curl -X POST --header 'x-arango-async: store' --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF
|
||||
{
|
||||
<span class="hljs-string">"query"</span> : <span class="hljs-string">"FOR i IN 1..10 FOR j IN 1..10 LET x = sleep(1.0) FILTER i == 5 && j == 5 RETURN 42"</span>
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-arango-async-id: 145216793943678
|
||||
|
||||
shell> curl --dump - http://localhost:8529/_api/job/pending
|
||||
|
||||
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>
|
||||
|
||||
[
|
||||
<span class="hljs-string">"145216793943678"</span>
|
||||
]
|
||||
shell> curl -X PUT --dump - http://localhost:8529/_api/job/145216793943678/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>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"result"</span> : <span class="hljs-literal">true</span>
|
||||
}
|
||||
shell> curl --dump - http://localhost:8529/_api/job/pending
|
||||
|
||||
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>
|
||||
|
||||
[ ]
|
|
@ -1,14 +0,0 @@
|
|||
shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version
|
||||
|
||||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-arango-async-id: 145216793943685
|
||||
|
||||
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/all
|
||||
|
||||
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>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"result"</span> : <span class="hljs-literal">true</span>
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version
|
||||
|
||||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-arango-async-id: 145216793943689
|
||||
|
||||
shell> curl --dump - http://localhost:8529/_admin/time
|
||||
|
||||
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>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"time"</span> : <span class="hljs-number">1452167976.507345</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=1452167976.507345
|
||||
|
||||
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>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"result"</span> : <span class="hljs-literal">true</span>
|
||||
}
|
||||
shell> curl --dump - http://localhost:8529/_api/job/pending
|
||||
|
||||
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>
|
||||
|
||||
[ ]
|
|
@ -1,14 +0,0 @@
|
|||
shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version
|
||||
|
||||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-arango-async-id: 145216793943696
|
||||
|
||||
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/145216793943696
|
||||
|
||||
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>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"result"</span> : <span class="hljs-literal">true</span>
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/AreYouThere
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">404</span> Not Found
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">404</span>,
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"errorMessage"</span> : <span class="hljs-string">"not found"</span>,
|
||||
<span class="hljs-string">"errorNum"</span> : <span class="hljs-number">404</span>
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
shell> curl -X PUT --dump - http://localhost:8529/_api/job
|
||||
|
||||
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>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">400</span>,
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"errorMessage"</span> : <span class="hljs-string">"bad parameter"</span>,
|
||||
<span class="hljs-string">"errorNum"</span> : <span class="hljs-number">400</span>
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
shell> curl -X PUT --dump - http://localhost:8529/_api/job/notthere
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">404</span> Not Found
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">404</span>,
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"errorMessage"</span> : <span class="hljs-string">"not found"</span>,
|
||||
<span class="hljs-string">"errorNum"</span> : <span class="hljs-number">404</span>
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version
|
||||
|
||||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-arango-async-id: 145216793943707
|
||||
|
||||
shell> curl -X PUT --dump - http://localhost:8529/_api/job/145216793943707
|
||||
|
||||
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-arango-<span class="hljs-keyword">async</span>-id: <span class="hljs-number">145216793943707</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"server"</span> : <span class="hljs-string">"arango"</span>,
|
||||
<span class="hljs-string">"version"</span> : <span class="hljs-string">"2.7.0-devel"</span>
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
shell> curl -X PUT --header 'x-arango-async: store' --data-binary @- --dump - http://localhost:8529/_api/collection <<EOF
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">" this name is invalid"</span>
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-arango-async-id: 145216793943711
|
||||
|
||||
shell> curl -X PUT --dump - http://localhost:8529/_api/job/145216793943711
|
||||
|
||||
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-arango-<span class="hljs-keyword">async</span>-id: <span class="hljs-number">145216793943711</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">true</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>
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version
|
||||
|
||||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-arango-async-id: 145216793943715
|
||||
|
||||
shell> curl --dump - http://localhost:8529/_api/job/done
|
||||
|
||||
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>
|
||||
|
||||
[
|
||||
<span class="hljs-string">"145216793943715"</span>
|
||||
]
|
|
@ -1,12 +0,0 @@
|
|||
shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version
|
||||
|
||||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-arango-async-id: 145216793943719
|
||||
|
||||
shell> curl --dump - http://localhost:8529/_api/job/pending
|
||||
|
||||
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>
|
||||
|
||||
[ ]
|
|
@ -1,22 +0,0 @@
|
|||
shell> curl --header 'x-arango-async: store' --dump - http://localhost:8529/_admin/sleep?duration=30
|
||||
|
||||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-arango-async-id: 145216793943723
|
||||
|
||||
shell> curl --dump - http://localhost:8529/_api/job/pending
|
||||
|
||||
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>
|
||||
|
||||
[
|
||||
<span class="hljs-string">"145216793943723"</span>
|
||||
]
|
||||
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/145216793943723
|
||||
|
||||
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>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"result"</span> : <span class="hljs-literal">true</span>
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:8529/_api/version
|
||||
|
||||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-arango-async-id: 145216793943728
|
||||
|
||||
shell> curl -X PUT --dump - http://localhost:8529/_api/job/145216793943728
|
||||
|
||||
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-arango-<span class="hljs-keyword">async</span>-id: <span class="hljs-number">145216793943728</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"server"</span> : <span class="hljs-string">"arango"</span>,
|
||||
<span class="hljs-string">"version"</span> : <span class="hljs-string">"2.7.0-devel"</span>
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
shell> curl --header 'x-arango-async: store' --dump - http://localhost:8529/_admin/sleep?duration=30
|
||||
|
||||
HTTP/1.1 202 Accepted
|
||||
content-type: text/plain; charset=utf-8
|
||||
x-arango-async-id: 145216793943732
|
||||
|
||||
shell> curl --dump - http://localhost:8529/_api/job/145216793943732
|
||||
|
||||
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/631649385"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"631649385"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"631649385"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4020543419"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4020543419"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4020543419"</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/632304745"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"632304745"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"632304745"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4021198779"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4021198779"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4021198779"</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/633091177"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"633091177"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"633091177"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4021854139"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4021854139"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4021854139"</span>
|
||||
}
|
||||
|
|
|
@ -7,12 +7,12 @@ arangosh> arango.GET(<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">38500</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">8529</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">50208</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145216793940054"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">41780</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145259224201104"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -29,7 +29,7 @@ arangosh> arango.GET(<span class="hljs-string">"/hello/echo"</span>)
|
|||
},
|
||||
<span class="hljs-string">"cookies"</span> : {
|
||||
},
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20700</span>,
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20800</span>,
|
||||
<span class="hljs-string">"urlParameters"</span> : {
|
||||
}
|
||||
},
|
||||
|
|
|
@ -5,7 +5,7 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/633943145"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"633943145"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"633943145"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4022509499"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4022509499"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4022509499"</span>
|
||||
}
|
||||
|
|
|
@ -7,12 +7,12 @@ arangosh> arango.GET(<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">38500</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">8529</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">50208</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145216793940054"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">41780</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145259224201104"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -29,7 +29,7 @@ arangosh> arango.GET(<span class="hljs-string">"/hello/echo"</span>)
|
|||
},
|
||||
<span class="hljs-string">"cookies"</span> : {
|
||||
},
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20700</span>,
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20800</span>,
|
||||
<span class="hljs-string">"urlParameters"</span> : {
|
||||
}
|
||||
},
|
||||
|
|
|
@ -5,7 +5,7 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/634795113"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"634795113"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"634795113"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4023164859"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4023164859"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4023164859"</span>
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> })
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/635516009"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"635516009"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"635516009"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4023820219"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4023820219"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4023820219"</span>
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/636171369"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"636171369"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"636171369"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4024213435"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4024213435"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4024213435"</span>
|
||||
}
|
||||
|
|
|
@ -7,12 +7,12 @@ arangosh> arango.GET(<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">38500</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">8529</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">50208</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145216793940054"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">41780</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145259224201104"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -29,12 +29,11 @@ arangosh> arango.GET(<span class="hljs-string">"/echo"</span>)
|
|||
},
|
||||
<span class="hljs-string">"cookies"</span> : {
|
||||
},
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20700</span>,
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20800</span>,
|
||||
<span class="hljs-string">"urlParameters"</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/637154409"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"637154409"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"637154409"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_modules/4024999867"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4024999867"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4024999867"</span>
|
||||
}
|
||||
|
|
|
@ -5,8 +5,8 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/637351017"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"637351017"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"637351017"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4025196475"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4025196475"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4025196475"</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/639054953"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"639054953"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"639054953"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4026834875"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4026834875"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4026834875"</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/639972457"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"639972457"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"639972457"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4027490235"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4027490235"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4027490235"</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/640758889"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"640758889"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"640758889"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4028145595"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4028145595"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4028145595"</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/641414249"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"641414249"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"641414249"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_modules/4028800955"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4028800955"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4028800955"</span>
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ arangosh> db._routing.save({
|
|||
........> ]
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/641873001"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"641873001"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"641873001"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4028997563"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4028997563"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4028997563"</span>
|
||||
}
|
||||
|
|
|
@ -5,9 +5,9 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/642069609"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"642069609"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"642069609"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4029194171"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4029194171"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4029194171"</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/642266217"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"642266217"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"642266217"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4029390779"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4029390779"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4029390779"</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/642462825"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"642462825"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"642462825"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4029587387"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4029587387"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4029587387"</span>
|
||||
}
|
||||
arangosh> <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()
|
||||
|
|
|
@ -11,12 +11,12 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</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">38500</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">8529</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">50208</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145216793940054"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">41780</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145259224201104"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -33,7 +33,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
|||
},
|
||||
<span class="hljs-string">"cookies"</span> : {
|
||||
},
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20700</span>,
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20800</span>,
|
||||
<span class="hljs-string">"urlParameters"</span> : {
|
||||
}
|
||||
},
|
||||
|
@ -53,12 +53,12 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</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">38500</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">8529</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">50208</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145216793940054"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">41780</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145259224201104"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -75,7 +75,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
|||
},
|
||||
<span class="hljs-string">"cookies"</span> : {
|
||||
},
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20700</span>,
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20800</span>,
|
||||
<span class="hljs-string">"urlParameters"</span> : {
|
||||
}
|
||||
},
|
||||
|
@ -95,12 +95,12 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</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">38500</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">8529</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">50208</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145216793940054"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">41780</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145259224201104"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -117,7 +117,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
|||
},
|
||||
<span class="hljs-string">"cookies"</span> : {
|
||||
},
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20700</span>,
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20800</span>,
|
||||
<span class="hljs-string">"urlParameters"</span> : {
|
||||
}
|
||||
},
|
||||
|
|
|
@ -8,8 +8,8 @@ arangosh> db._routing.save({
|
|||
........> }
|
||||
........> });
|
||||
{
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/646591593"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"646591593"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"646591593"</span>
|
||||
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/4031553467"</span>,
|
||||
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"4031553467"</span>,
|
||||
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"4031553467"</span>
|
||||
}
|
||||
arangosh> <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()
|
||||
|
|
|
@ -11,12 +11,12 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</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">38500</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">8529</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">50208</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145216793940054"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">41780</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145259224201104"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -33,7 +33,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
|||
},
|
||||
<span class="hljs-string">"cookies"</span> : {
|
||||
},
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20700</span>,
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20800</span>,
|
||||
<span class="hljs-string">"urlParameters"</span> : {
|
||||
}
|
||||
},
|
||||
|
@ -55,12 +55,12 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</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">38500</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">8529</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">50208</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145216793940054"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">41780</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145259224201104"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -78,7 +78,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
|||
},
|
||||
<span class="hljs-string">"cookies"</span> : {
|
||||
},
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20700</span>,
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20800</span>,
|
||||
<span class="hljs-string">"urlParameters"</span> : {
|
||||
}
|
||||
},
|
||||
|
@ -100,12 +100,12 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</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">38500</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">8529</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">50208</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145216793940054"</span>
|
||||
<span class="hljs-string">"port"</span> : <span class="hljs-number">41780</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"145259224201104"</span>
|
||||
},
|
||||
<span class="hljs-string">"internals"</span> : {
|
||||
},
|
||||
|
@ -123,7 +123,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
|||
},
|
||||
<span class="hljs-string">"cookies"</span> : {
|
||||
},
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20700</span>,
|
||||
<span class="hljs-string">"compatibility"</span> : <span class="hljs-number">20800</span>,
|
||||
<span class="hljs-string">"urlParameters"</span> : {
|
||||
}
|
||||
},
|
||||
|
|
|
@ -5,7 +5,7 @@ arangosh> queries.properties();
|
|||
<span class="hljs-string">"enabled"</span> : <span class="hljs-literal">true</span>,
|
||||
<span class="hljs-string">"maxQueryStringLength"</span> : <span class="hljs-number">4096</span>,
|
||||
<span class="hljs-string">"maxSlowQueries"</span> : <span class="hljs-number">64</span>,
|
||||
<span class="hljs-string">"slowQueryThreshold"</span> : <span class="hljs-number">10</span>,
|
||||
<span class="hljs-string">"slowQueryThreshold"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"trackSlowQueries"</span> : <span class="hljs-literal">true</span>
|
||||
}
|
||||
arangosh> queries.properties({slowQueryThreshold: <span class="hljs-number">1</span>});
|
||||
|
|
|
@ -10,7 +10,7 @@ arangosh> tasks.register({
|
|||
<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">"type"</span> : <span class="hljs-string">"timed"</span>,
|
||||
<span class="hljs-string">"offset"</span> : <span class="hljs-number">0.00001</span>,
|
||||
<span class="hljs-string">"created"</span> : <span class="hljs-number">1452167981.89619</span>,
|
||||
<span class="hljs-string">"created"</span> : <span class="hljs-number">1452619688.371183</span>,
|
||||
<span class="hljs-string">"command"</span> : <span class="hljs-string">"require('internal').db._query('FOR sleepLoooong IN 1..5 LET sleepLoooonger = SLE..."</span>,
|
||||
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>
|
||||
|
@ -18,9 +18,9 @@ arangosh> tasks.register({
|
|||
arangosh> queries.current();
|
||||
[
|
||||
{
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"166"</span>,
|
||||
<span class="hljs-string">"id"</span> : <span class="hljs-string">"4001"</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">"runTime"</span> : <span class="hljs-number">1.9659910202026367</span>,
|
||||
<span class="hljs-string">"started"</span> : <span class="hljs-string">"2016-01-07T11:59:41Z"</span>
|
||||
<span class="hljs-string">"runTime"</span> : <span class="hljs-number">1.8614799976348877</span>,
|
||||
<span class="hljs-string">"started"</span> : <span class="hljs-string">"2016-01-12T17:28:08Z"</span>
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,125 +0,0 @@
|
|||
shell> curl --dump - http://localhost:8529/_admin/statistics
|
||||
|
||||
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>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"time"</span> : <span class="hljs-number">1452167984.2146</span>,
|
||||
<span class="hljs-string">"system"</span> : {
|
||||
<span class="hljs-string">"minorPageFaults"</span> : <span class="hljs-number">156337</span>,
|
||||
<span class="hljs-string">"majorPageFaults"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"userTime"</span> : <span class="hljs-number">39.11</span>,
|
||||
<span class="hljs-string">"systemTime"</span> : <span class="hljs-number">1.86</span>,
|
||||
<span class="hljs-string">"numberOfThreads"</span> : <span class="hljs-number">26</span>,
|
||||
<span class="hljs-string">"residentSize"</span> : <span class="hljs-number">179073024</span>,
|
||||
<span class="hljs-string">"residentSizePercent"</span> : <span class="hljs-number">0.005309042652794512</span>,
|
||||
<span class="hljs-string">"virtualSize"</span> : <span class="hljs-number">4240195584</span>
|
||||
},
|
||||
<span class="hljs-string">"client"</span> : {
|
||||
<span class="hljs-string">"httpConnections"</span> : <span class="hljs-number">-1</span>,
|
||||
<span class="hljs-string">"connectionTime"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">0.0006129741668701172</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">1</span>,
|
||||
<span class="hljs-string">"counts"</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-string">"totalTime"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">18.83097767829895</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">3708</span>,
|
||||
<span class="hljs-string">"counts"</span> : [
|
||||
<span class="hljs-number">3404</span>,
|
||||
<span class="hljs-number">267</span>,
|
||||
<span class="hljs-number">25</span>,
|
||||
<span class="hljs-number">6</span>,
|
||||
<span class="hljs-number">3</span>,
|
||||
<span class="hljs-number">1</span>,
|
||||
<span class="hljs-number">2</span>
|
||||
]
|
||||
},
|
||||
<span class="hljs-string">"requestTime"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">18.396875619888306</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">3708</span>,
|
||||
<span class="hljs-string">"counts"</span> : [
|
||||
<span class="hljs-number">3405</span>,
|
||||
<span class="hljs-number">266</span>,
|
||||
<span class="hljs-number">25</span>,
|
||||
<span class="hljs-number">6</span>,
|
||||
<span class="hljs-number">3</span>,
|
||||
<span class="hljs-number">1</span>,
|
||||
<span class="hljs-number">2</span>
|
||||
]
|
||||
},
|
||||
<span class="hljs-string">"queueTime"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"counts"</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-number">0</span>,
|
||||
<span class="hljs-number">0</span>
|
||||
]
|
||||
},
|
||||
<span class="hljs-string">"ioTime"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">0.43410205841064453</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">3708</span>,
|
||||
<span class="hljs-string">"counts"</span> : [
|
||||
<span class="hljs-number">3708</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-number">0</span>
|
||||
]
|
||||
},
|
||||
<span class="hljs-string">"bytesSent"</span> : {
|
||||
<span class="hljs-string">"sum"</span> : <span class="hljs-number">1837525</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">3708</span>,
|
||||
<span class="hljs-string">"counts"</span> : [
|
||||
<span class="hljs-number">396</span>,
|
||||
<span class="hljs-number">3040</span>,
|
||||
<span class="hljs-number">19</span>,
|
||||
<span class="hljs-number">253</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">831889</span>,
|
||||
<span class="hljs-string">"count"</span> : <span class="hljs-number">3708</span>,
|
||||
<span class="hljs-string">"counts"</span> : [
|
||||
<span class="hljs-number">3444</span>,
|
||||
<span class="hljs-number">264</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">"http"</span> : {
|
||||
<span class="hljs-string">"requestsTotal"</span> : <span class="hljs-number">3747</span>,
|
||||
<span class="hljs-string">"requestsAsync"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"requestsGet"</span> : <span class="hljs-number">679</span>,
|
||||
<span class="hljs-string">"requestsHead"</span> : <span class="hljs-number">71</span>,
|
||||
<span class="hljs-string">"requestsPost"</span> : <span class="hljs-number">2728</span>,
|
||||
<span class="hljs-string">"requestsPut"</span> : <span class="hljs-number">120</span>,
|
||||
<span class="hljs-string">"requestsPatch"</span> : <span class="hljs-number">3</span>,
|
||||
<span class="hljs-string">"requestsDelete"</span> : <span class="hljs-number">145</span>,
|
||||
<span class="hljs-string">"requestsOptions"</span> : <span class="hljs-number">0</span>,
|
||||
<span class="hljs-string">"requestsOther"</span> : <span class="hljs-number">1</span>
|
||||
},
|
||||
<span class="hljs-string">"server"</span> : {
|
||||
<span class="hljs-string">"uptime"</span> : <span class="hljs-number">44.80226683616638</span>,
|
||||
<span class="hljs-string">"physicalMemory"</span> : <span class="hljs-number">33729814528</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>
|
||||
}
|
|
@ -1,292 +0,0 @@
|
|||
shell> curl --dump - http://localhost:8529/_admin/statistics-description
|
||||
|
||||
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>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"groups"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"system"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Process Statistics"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Statistics about the ArangoDB process"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"client"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Client Connection Statistics"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Statistics about the connections."</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"HTTP Request Statistics"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Statistics about the HTTP requests."</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"server"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Server Statistics"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Statistics about the ArangoDB server"</span>
|
||||
}
|
||||
],
|
||||
<span class="hljs-string">"figures"</span> : [
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"system"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"userTime"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"User Time"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Amount of time that this process has been scheduled in user mode, measured in seconds."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"seconds"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"system"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"systemTime"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"System Time"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Amount of time that this process has been scheduled in kernel mode, measured in seconds."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"seconds"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"system"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"numberOfThreads"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Number of Threads"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Number of threads in the arangod process."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"current"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"system"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"residentSize"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Resident Set Size"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"The total size of the number of pages the process has in real memory. This is just the pages which count toward text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out. The resident set size is reported in bytes."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"current"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"bytes"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"system"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"residentSizePercent"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Resident Set Size"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"The percentage of physical memory used by the process as resident set size."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"current"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"percent"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"system"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"virtualSize"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Virtual Memory Size"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"On Windows, this figure contains the total amount of memory that the memory manager has committed for the arangod process. On other systems, this figure contains The size of the virtual memory the process is using."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"current"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"bytes"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"system"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"minorPageFaults"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Minor Page Faults"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"The number of minor faults the process has made which have not required loading a memory page from disk. This figure is not reported on Windows."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"system"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"majorPageFaults"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Major Page Faults"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"On Windows, this figure contains the total number of page faults. On other system, this figure contains the number of major faults the process has made which have required loading a memory page from disk."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"client"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"httpConnections"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Client Connections"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"The number of connections that are currently open."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"current"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"client"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"totalTime"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Total Time"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Total time needed to answer a request."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"distribution"</span>,
|
||||
<span class="hljs-string">"cuts"</span> : [
|
||||
<span class="hljs-number">0.01</span>,
|
||||
<span class="hljs-number">0.05</span>,
|
||||
<span class="hljs-number">0.1</span>,
|
||||
<span class="hljs-number">0.2</span>,
|
||||
<span class="hljs-number">0.5</span>,
|
||||
<span class="hljs-number">1</span>
|
||||
],
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"seconds"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"client"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"requestTime"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Request Time"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Request time needed to answer a request."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"distribution"</span>,
|
||||
<span class="hljs-string">"cuts"</span> : [
|
||||
<span class="hljs-number">0.01</span>,
|
||||
<span class="hljs-number">0.05</span>,
|
||||
<span class="hljs-number">0.1</span>,
|
||||
<span class="hljs-number">0.2</span>,
|
||||
<span class="hljs-number">0.5</span>,
|
||||
<span class="hljs-number">1</span>
|
||||
],
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"seconds"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"client"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"queueTime"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Queue Time"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Queue time needed to answer a request."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"distribution"</span>,
|
||||
<span class="hljs-string">"cuts"</span> : [
|
||||
<span class="hljs-number">0.01</span>,
|
||||
<span class="hljs-number">0.05</span>,
|
||||
<span class="hljs-number">0.1</span>,
|
||||
<span class="hljs-number">0.2</span>,
|
||||
<span class="hljs-number">0.5</span>,
|
||||
<span class="hljs-number">1</span>
|
||||
],
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"seconds"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"client"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"bytesSent"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Bytes Sent"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Bytes sents for a request."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"distribution"</span>,
|
||||
<span class="hljs-string">"cuts"</span> : [
|
||||
<span class="hljs-number">250</span>,
|
||||
<span class="hljs-number">1000</span>,
|
||||
<span class="hljs-number">2000</span>,
|
||||
<span class="hljs-number">5000</span>,
|
||||
<span class="hljs-number">10000</span>
|
||||
],
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"bytes"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"client"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"bytesReceived"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Bytes Received"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Bytes receiveds for a request."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"distribution"</span>,
|
||||
<span class="hljs-string">"cuts"</span> : [
|
||||
<span class="hljs-number">250</span>,
|
||||
<span class="hljs-number">1000</span>,
|
||||
<span class="hljs-number">2000</span>,
|
||||
<span class="hljs-number">5000</span>,
|
||||
<span class="hljs-number">10000</span>
|
||||
],
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"bytes"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"client"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"connectionTime"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Connection Time"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Total connection time of a client."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"distribution"</span>,
|
||||
<span class="hljs-string">"cuts"</span> : [
|
||||
<span class="hljs-number">0.1</span>,
|
||||
<span class="hljs-number">1</span>,
|
||||
<span class="hljs-number">60</span>
|
||||
],
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"seconds"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"requestsTotal"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Total requests"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Total number of HTTP requests."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"requestsAsync"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Async requests"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Number of asynchronously executed HTTP requests."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"requestsGet"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"HTTP GET requests"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Number of HTTP GET requests."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"requestsHead"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"HTTP HEAD requests"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Number of HTTP HEAD requests."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"requestsPost"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"HTTP POST requests"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Number of HTTP POST requests."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"requestsPut"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"HTTP PUT requests"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Number of HTTP PUT requests."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"requestsPatch"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"HTTP PATCH requests"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Number of HTTP PATCH requests."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"requestsDelete"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"HTTP DELETE requests"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Number of HTTP DELETE requests."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"requestsOptions"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"HTTP OPTIONS requests"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Number of HTTP OPTIONS requests."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"http"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"requestsOther"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"other HTTP requests"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Number of other HTTP requests."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"accumulated"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"number"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"server"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"uptime"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Server Uptime"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Number of seconds elapsed since server start."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"current"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"seconds"</span>
|
||||
},
|
||||
{
|
||||
<span class="hljs-string">"group"</span> : <span class="hljs-string">"server"</span>,
|
||||
<span class="hljs-string">"identifier"</span> : <span class="hljs-string">"physicalMemory"</span>,
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Physical Memory"</span>,
|
||||
<span class="hljs-string">"description"</span> : <span class="hljs-string">"Physical memory in bytes."</span>,
|
||||
<span class="hljs-string">"type"</span> : <span class="hljs-string">"current"</span>,
|
||||
<span class="hljs-string">"units"</span> : <span class="hljs-string">"bytes"</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>
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/aqlfunction <<EOF
|
||||
{
|
||||
<span class="hljs-string">"name"</span> : <span class="hljs-string">"myfunctions::temperature::celsiustofahrenheit"</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-string">"function (celsius) { return celsius * 1.8 + 32; }"</span>
|
||||
}
|
||||
EOF
|
||||
|
||||
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">201</span> Created
|
||||
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
|
||||
|
||||
{
|
||||
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
|
||||
<span class="hljs-string">"code"</span> : <span class="hljs-number">201</span>
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue