1
0
Fork 0

Merge branch 'devel' of https://github.com/arangodb/arangodb into devel

This commit is contained in:
Simon Grätzer 2017-01-11 11:29:54 +01:00
commit d857f01d6a
386 changed files with 4277 additions and 4104 deletions

View File

@ -548,7 +548,7 @@ return 0; }"
try_compile(HAS_PROPER_STATIC_JEMALLOC
${CMAKE_BINARY_DIR}
${TSTSRC}
LINK_LIBRARIES "jemalloc.a" "pthread" ${SYS_LIBS}
LINK_LIBRARIES "jemalloc.a" "pthread" ${SYS_LIBS} ${CMAKE_DL_LIBS}
)
if (USE_JEMALLOC AND NOT HAS_PROPER_STATIC_JEMALLOC)
message(FATAL_ERROR "the static system jemalloc isn't suitable! Recompile with the current compiler or disable using `-DCMAKE_CXX_FLAGS=-no-pie -DCMAKE_C_FLAGS=-no-pie`")

View File

@ -4,7 +4,7 @@ Task Management
`const tasks = require('@arangodb/tasks')`
**Note**: If you are trying to schedule tasks in Foxx you should
consider using the [Foxx queues module](../../Foxx/Scripts.md#Queues) instead,
consider using the [Foxx queues module](../../Foxx/Scripts.md#queues) instead,
which provides a more high-level API that also persists tasks across reboots.
## Introduction to Task Management in ArangoDB

View File

@ -1,63 +1,63 @@
arangosh&gt; db.five.save({ name : <span class="hljs-string">"one"</span> });
arangosh&gt; db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"one"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/103"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"103"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQpW---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8F9G---"</span>
}
arangosh&gt; db.five.save({ name : <span class="hljs-string">"two"</span> });
arangosh&gt; db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"two"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/107"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"107"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQpa---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8F9W---"</span>
}
arangosh&gt; db.five.save({ name : <span class="hljs-string">"three"</span> });
arangosh&gt; db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"three"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/110"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"110"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQpe---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8F9a---"</span>
}
arangosh&gt; db.five.save({ name : <span class="hljs-string">"four"</span> });
arangosh&gt; db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"four"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/113"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"113"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQpe--_"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8F9e---"</span>
}
arangosh&gt; db.five.save({ name : <span class="hljs-string">"five"</span> });
arangosh&gt; db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"five"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/116"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"116"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQpe--A"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8F9i---"</span>
}
arangosh&gt; db.five.all().toArray();
[
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"107"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/107"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQpa---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8F9W---"</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"two"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"116"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/116"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQpe--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8F9i---"</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"five"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"113"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/113"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQpe--_"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8F9e---"</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"four"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"103"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/103"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQpW---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8F9G---"</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"one"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"110"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/110"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQpe---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8F9a---"</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"three"</span>
}
]

View File

@ -1,45 +1,45 @@
arangosh&gt; db.five.save({ name : <span class="hljs-string">"one"</span> });
arangosh&gt; db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"one"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/123"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"123"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQqq---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GJy---"</span>
}
arangosh&gt; db.five.save({ name : <span class="hljs-string">"two"</span> });
arangosh&gt; db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"two"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/127"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"127"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQqu---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GJ2---"</span>
}
arangosh&gt; db.five.save({ name : <span class="hljs-string">"three"</span> });
arangosh&gt; db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"three"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/130"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"130"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQqu--_"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GJ6---"</span>
}
arangosh&gt; db.five.save({ name : <span class="hljs-string">"four"</span> });
arangosh&gt; db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"four"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/133"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"133"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQqu--A"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GK----"</span>
}
arangosh&gt; db.five.save({ name : <span class="hljs-string">"five"</span> });
arangosh&gt; db.five.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"five"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/136"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"136"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQqy---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GK---_"</span>
}
arangosh&gt; db.five.all().limit(<span class="hljs-number">2</span>).toArray();
[
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"136"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/136"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQqy---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GK---_"</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"five"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"127"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/127"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQqu---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GJ2---"</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"two"</span>
}
]

View File

@ -1,39 +1,39 @@
arangosh&gt; db.users.save({ name: <span class="hljs-string">"Gerhard"</span> });
arangosh&gt; db.users.save({ <span class="hljs-attr">name</span>: <span class="hljs-string">"Gerhard"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/143"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"143"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQrS---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GSK---"</span>
}
arangosh&gt; db.users.save({ name: <span class="hljs-string">"Helmut"</span> });
arangosh&gt; db.users.save({ <span class="hljs-attr">name</span>: <span class="hljs-string">"Helmut"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/147"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"147"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQrS--_"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GSO---"</span>
}
arangosh&gt; db.users.save({ name: <span class="hljs-string">"Angela"</span> });
arangosh&gt; db.users.save({ <span class="hljs-attr">name</span>: <span class="hljs-string">"Angela"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/150"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"150"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQrS--A"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GSS---"</span>
}
arangosh&gt; db.users.all().toArray();
[
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"147"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/147"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQrS--_"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GSO---"</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Helmut"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"143"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/143"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQrS---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GSK---"</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Gerhard"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"150"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/150"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQrS--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GSS---"</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Angela"</span>
}
]
@ -44,7 +44,7 @@ arangosh&gt; db.users.byExample({ <span class="hljs-string">"name"</span> : <spa
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"143"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/143"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQrS---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8GSK---"</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Gerhard"</span>
}
]

View File

@ -1,26 +1,26 @@
arangosh&gt; db.users.save({ name: <span class="hljs-string">"Gerhard"</span> });
arangosh&gt; db.users.save({ <span class="hljs-attr">name</span>: <span class="hljs-string">"Gerhard"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/163"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"163"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQs2---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Gbm---"</span>
}
arangosh&gt; db.users.save({ name: <span class="hljs-string">"Helmut"</span> });
arangosh&gt; db.users.save({ <span class="hljs-attr">name</span>: <span class="hljs-string">"Helmut"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/167"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"167"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQs2--_"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Gbq---"</span>
}
arangosh&gt; db.users.save({ name: <span class="hljs-string">"Angela"</span> });
arangosh&gt; db.users.save({ <span class="hljs-attr">name</span>: <span class="hljs-string">"Angela"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/170"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"170"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQs2--A"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Gbu---"</span>
}
arangosh&gt; <span class="hljs-keyword">var</span> a = db.users.byExample( {<span class="hljs-string">"name"</span> : <span class="hljs-string">"Angela"</span> } );
arangosh&gt; <span class="hljs-keyword">while</span> (a.hasNext()) print(a.next());
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"170"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"users/170"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQs2--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Gbu---"</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Angela"</span>
}

View File

@ -1,4 +1,4 @@
arangosh&gt; db.old.ensureIndex({ type: <span class="hljs-string">"skiplist"</span>, fields: [ <span class="hljs-string">"age"</span> ] });
arangosh&gt; db.old.ensureIndex({ <span class="hljs-attr">type</span>: <span class="hljs-string">"skiplist"</span>, <span class="hljs-attr">fields</span>: [ <span class="hljs-string">"age"</span> ] });
{
<span class="hljs-string">"id"</span> : <span class="hljs-string">"old/178"</span>,
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
@ -10,36 +10,36 @@ arangosh&gt; db.old.ensureIndex({ type: <span class="hljs-string">"skiplist"</sp
<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&gt; db.old.save({ age: <span class="hljs-number">15</span> });
arangosh&gt; db.old.save({ <span class="hljs-attr">age</span>: <span class="hljs-number">15</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/181"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"181"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQti---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Gnu---"</span>
}
arangosh&gt; db.old.save({ age: <span class="hljs-number">25</span> });
arangosh&gt; db.old.save({ <span class="hljs-attr">age</span>: <span class="hljs-number">25</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/185"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"185"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQti--_"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Gny---"</span>
}
arangosh&gt; db.old.save({ age: <span class="hljs-number">30</span> });
arangosh&gt; db.old.save({ <span class="hljs-attr">age</span>: <span class="hljs-number">30</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/188"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"188"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQtm---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Gn2---"</span>
}
arangosh&gt; db.old.range(<span class="hljs-string">"age"</span>, <span class="hljs-number">10</span>, <span class="hljs-number">30</span>).toArray();
[
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"181"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/181"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQti---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Gnu---"</span>,
<span class="hljs-string">"age"</span> : <span class="hljs-number">15</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"185"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/185"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQti--_"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Gny---"</span>,
<span class="hljs-string">"age"</span> : <span class="hljs-number">25</span>
}
]

View File

@ -1,4 +1,4 @@
arangosh&gt; db.old.ensureIndex({ type: <span class="hljs-string">"skiplist"</span>, fields: [ <span class="hljs-string">"age"</span> ] });
arangosh&gt; db.old.ensureIndex({ <span class="hljs-attr">type</span>: <span class="hljs-string">"skiplist"</span>, <span class="hljs-attr">fields</span>: [ <span class="hljs-string">"age"</span> ] });
{
<span class="hljs-string">"id"</span> : <span class="hljs-string">"old/196"</span>,
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
@ -10,42 +10,42 @@ arangosh&gt; db.old.ensureIndex({ type: <span class="hljs-string">"skiplist"</sp
<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&gt; db.old.save({ age: <span class="hljs-number">15</span> });
arangosh&gt; db.old.save({ <span class="hljs-attr">age</span>: <span class="hljs-number">15</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/199"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"199"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQuS---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8G0O---"</span>
}
arangosh&gt; db.old.save({ age: <span class="hljs-number">25</span> });
arangosh&gt; db.old.save({ <span class="hljs-attr">age</span>: <span class="hljs-number">25</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/203"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"203"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQuS--_"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8G0O--_"</span>
}
arangosh&gt; db.old.save({ age: <span class="hljs-number">30</span> });
arangosh&gt; db.old.save({ <span class="hljs-attr">age</span>: <span class="hljs-number">30</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/206"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"206"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQuS--A"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8G0S---"</span>
}
arangosh&gt; db.old.closedRange(<span class="hljs-string">"age"</span>, <span class="hljs-number">10</span>, <span class="hljs-number">30</span>).toArray();
[
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"199"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/199"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQuS---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8G0O---"</span>,
<span class="hljs-string">"age"</span> : <span class="hljs-number">15</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"203"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/203"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQuS--_"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8G0O--_"</span>,
<span class="hljs-string">"age"</span> : <span class="hljs-number">25</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"206"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"old/206"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQuS--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8G0S---"</span>,
<span class="hljs-string">"age"</span> : <span class="hljs-number">30</span>
}
]

View File

@ -1,4 +1,4 @@
arangosh&gt; db.geo.ensureIndex({ type: <span class="hljs-string">"geo"</span>, fields: [ <span class="hljs-string">"loc"</span> ] });
arangosh&gt; db.geo.ensureIndex({ <span class="hljs-attr">type</span>: <span class="hljs-string">"geo"</span>, <span class="hljs-attr">fields</span>: [ <span class="hljs-string">"loc"</span> ] });
{
<span class="hljs-string">"id"</span> : <span class="hljs-string">"geo/214"</span>,
<span class="hljs-string">"type"</span> : <span class="hljs-string">"geo1"</span>,
@ -24,21 +24,21 @@ arangosh&gt; db.geo.near(<span class="hljs-number">0</span>, <span class="hljs-n
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"1271"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/1271"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQ0O--B"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8HGq--A"</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">"name"</span> : <span class="hljs-string">"Name/0/0"</span>
]
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"1160"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/1160"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pQzu--_"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8HGG---"</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">"name"</span> : <span class="hljs-string">"Name/-10/0"</span>
]
}
]

View File

@ -1,4 +1,4 @@
arangosh&gt; db.geo.ensureIndex({ type: <span class="hljs-string">"geo"</span>, fields: [ <span class="hljs-string">"loc"</span> ] });
arangosh&gt; db.geo.ensureIndex({ <span class="hljs-attr">type</span>: <span class="hljs-string">"geo"</span>, <span class="hljs-attr">fields</span>: [ <span class="hljs-string">"loc"</span> ] });
{
<span class="hljs-string">"id"</span> : <span class="hljs-string">"geo/2334"</span>,
<span class="hljs-string">"type"</span> : <span class="hljs-string">"geo1"</span>,
@ -25,7 +25,7 @@ arangosh&gt; db.geo.near(<span class="hljs-number">0</span>, <span class="hljs-n
<span class="hljs-string">"distance"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/3391"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3391"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRA---_"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Hg6--A"</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">0</span>,
<span class="hljs-number">0</span>
@ -36,7 +36,7 @@ arangosh&gt; db.geo.near(<span class="hljs-number">0</span>, <span class="hljs-n
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/3280"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"3280"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pR_a--C"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8HgS---"</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">-10</span>,
<span class="hljs-number">0</span>

View File

@ -1,13 +1,13 @@
arangosh&gt; <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> i = <span class="hljs-number">-90</span>; i &lt;= <span class="hljs-number">90</span>; i += <span class="hljs-number">10</span>) {
........&gt; <span class="hljs-keyword">for</span> (<span class="hljs-keyword">var</span> j = <span class="hljs-number">-180</span>; j &lt;= <span class="hljs-number">180</span>; j += <span class="hljs-number">10</span>) {
........&gt; db.geo.save({ name : <span class="hljs-string">"Name/"</span> + i + <span class="hljs-string">"/"</span> + j, loc: [ i, j ] }); } }
........&gt; db.geo.save({ <span class="hljs-attr">name</span> : <span class="hljs-string">"Name/"</span> + i + <span class="hljs-string">"/"</span> + j, <span class="hljs-attr">loc</span>: [ i, j ] }); } }
arangosh&gt; 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">"distance"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5511"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5511"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRLS--_"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8H8W---"</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">0</span>,
<span class="hljs-number">0</span>
@ -18,7 +18,7 @@ arangosh&gt; db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5400"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5400"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRKu--B"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8H7u--B"</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">-10</span>,
<span class="hljs-number">0</span>
@ -29,7 +29,7 @@ arangosh&gt; db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5514"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5514"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRLS--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8H8W--_"</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">0</span>,
<span class="hljs-number">10</span>
@ -40,7 +40,7 @@ arangosh&gt; db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5622"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5622"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRLy--B"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8H86--B"</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">10</span>,
<span class="hljs-number">0</span>
@ -51,7 +51,7 @@ arangosh&gt; db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1111949.2664455874</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5508"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5508"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRLS---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8H8S--A"</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">0</span>,
<span class="hljs-number">-10</span>
@ -62,7 +62,7 @@ arangosh&gt; db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1568520.556798576</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5403"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5403"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRKy---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8H7y---"</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">-10</span>,
<span class="hljs-number">10</span>
@ -73,7 +73,7 @@ arangosh&gt; db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1568520.556798576</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5625"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5625"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRLy--C"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8H9----"</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">10</span>,
<span class="hljs-number">10</span>
@ -84,7 +84,7 @@ arangosh&gt; db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1568520.556798576</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5397"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5397"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRKu--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8H7u--A"</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">-10</span>,
<span class="hljs-number">-10</span>
@ -95,7 +95,7 @@ arangosh&gt; db.geo.within(<span class="hljs-number">0</span>, <span class="hljs
<span class="hljs-string">"distance"</span> : <span class="hljs-number">1568520.556798576</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"geo/5619"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"5619"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRLy--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8H86--A"</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">10</span>,
<span class="hljs-number">-10</span>

View File

@ -1,2 +1,2 @@
arangosh&gt; db.example.removeByExample( {Hello : <span class="hljs-string">"world"</span>} );
arangosh&gt; db.example.removeByExample( {<span class="hljs-attr">Hello</span> : <span class="hljs-string">"world"</span>} );
<span class="hljs-number">1</span>

View File

@ -1,8 +1,8 @@
arangosh&gt; db.example.save({ Hello : <span class="hljs-string">"world"</span> });
arangosh&gt; db.example.save({ <span class="hljs-attr">Hello</span> : <span class="hljs-string">"world"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/6586"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"6586"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRRu---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8IVi---"</span>
}
arangosh&gt; 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>);
arangosh&gt; db.example.replaceByExample({ <span class="hljs-attr">Hello</span>: <span class="hljs-string">"world"</span> }, {<span class="hljs-attr">Hello</span>: <span class="hljs-string">"mars"</span>}, <span class="hljs-literal">false</span>, <span class="hljs-number">5</span>);
<span class="hljs-number">1</span>

View File

@ -1,17 +1,17 @@
arangosh&gt; db.example.save({ Hello : <span class="hljs-string">"world"</span>, foo : <span class="hljs-string">"bar"</span> });
arangosh&gt; db.example.save({ <span class="hljs-attr">Hello</span> : <span class="hljs-string">"world"</span>, <span class="hljs-attr">foo</span> : <span class="hljs-string">"bar"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/6598"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"6598"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRSO---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Iea---"</span>
}
arangosh&gt; 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>);
arangosh&gt; db.example.updateByExample({ <span class="hljs-attr">Hello</span>: <span class="hljs-string">"world"</span> }, { <span class="hljs-attr">Hello</span>: <span class="hljs-string">"foo"</span>, <span class="hljs-attr">World</span>: <span class="hljs-string">"bar"</span> }, <span class="hljs-literal">false</span>);
<span class="hljs-number">1</span>
arangosh&gt; db.example.byExample({ Hello: <span class="hljs-string">"foo"</span> }).toArray()
arangosh&gt; db.example.byExample({ <span class="hljs-attr">Hello</span>: <span class="hljs-string">"foo"</span> }).toArray()
[
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"6598"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"example/6598"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRSS---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Ieq---"</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>

View File

@ -1,10 +1,10 @@
arangosh&gt; db._create(<span class="hljs-string">"mycollection"</span>)
[ArangoCollection <span class="hljs-number">6609</span>, <span class="hljs-string">"mycollection"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
arangosh&gt; db.mycollection.save({ _key: <span class="hljs-string">"testKey"</span>, Hello : <span class="hljs-string">"World"</span> })
arangosh&gt; db.mycollection.save({ <span class="hljs-attr">_key</span>: <span class="hljs-string">"testKey"</span>, <span class="hljs-attr">Hello</span> : <span class="hljs-string">"World"</span> })
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"mycollection/testKey"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"testKey"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRS2---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Ioe---"</span>
}
arangosh&gt; db._query(<span class="hljs-string">'FOR my IN mycollection RETURN my._key'</span>).toArray()
[

View File

@ -5,7 +5,7 @@ arangosh&gt; db._query(aql<span class="hljs-string">`FOR doc IN <span class="hlj
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"testKey"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"mycollection/testKey"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRS2---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Ioe---"</span>,
<span class="hljs-string">"Hello"</span> : <span class="hljs-string">"World"</span>
}
]

View File

@ -0,0 +1,5 @@
arangosh&gt; db._query(
........&gt; <span class="hljs-string">'FOR i IN 1..100000 SORT i RETURN i'</span>, {}, {
........&gt; memoryLimit: <span class="hljs-number">100000</span>
........&gt; }).toArray();
[ArangoError <span class="hljs-number">32</span>: query would use more memory than allowed (<span class="hljs-keyword">while</span> executing)]

View File

@ -9,7 +9,7 @@ arangosh&gt; db._query(<span class="hljs-string">`FOR i IN 1..100
<span class="hljs-string">"scannedFull"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"scannedIndex"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"filtered"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0017158985137939453</span>
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0016169548034667969</span>
},
<span class="hljs-string">"warnings"</span> : [ ]
}

View File

@ -3,4 +3,4 @@ arangosh&gt; c = stmt.execute();
<span class="hljs-number">2</span>,
<span class="hljs-number">4</span>
]
[object ArangoQueryCursor, count: <span class="hljs-number">2</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">2</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]

View File

@ -7,4 +7,4 @@ arangosh&gt; c = stmt.execute();
<span class="hljs-number">2</span>,
<span class="hljs-number">4</span>
]
[object ArangoQueryCursor, count: <span class="hljs-number">2</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">2</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]

View File

@ -7,16 +7,16 @@ arangosh&gt; c.getExtra();
<span class="hljs-string">"scannedFull"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"scannedIndex"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"filtered"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0002269744873046875</span>
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0002849102020263672</span>
},
<span class="hljs-string">"profile"</span> : {
<span class="hljs-string">"initializing"</span> : <span class="hljs-number">0.0000050067901611328125</span>,
<span class="hljs-string">"parsing"</span> : <span class="hljs-number">0.000032901763916015625</span>,
<span class="hljs-string">"optimizing ast"</span> : <span class="hljs-number">0.0000059604644775390625</span>,
<span class="hljs-string">"loading collections"</span> : <span class="hljs-number">0.0000030994415283203125</span>,
<span class="hljs-string">"instantiating plan"</span> : <span class="hljs-number">0.000027894973754882812</span>,
<span class="hljs-string">"optimizing plan"</span> : <span class="hljs-number">0.00006413459777832031</span>,
<span class="hljs-string">"executing"</span> : <span class="hljs-number">0.00007390975952148438</span>
<span class="hljs-string">"parsing"</span> : <span class="hljs-number">0.00006699562072753906</span>,
<span class="hljs-string">"optimizing ast"</span> : <span class="hljs-number">0.000009059906005859375</span>,
<span class="hljs-string">"loading collections"</span> : <span class="hljs-number">0.0000040531158447265625</span>,
<span class="hljs-string">"instantiating plan"</span> : <span class="hljs-number">0.000025033950805664062</span>,
<span class="hljs-string">"optimizing plan"</span> : <span class="hljs-number">0.00006890296936035156</span>,
<span class="hljs-string">"executing"</span> : <span class="hljs-number">0.00008893013000488281</span>
},
<span class="hljs-string">"warnings"</span> : [ ]
}

View File

@ -2,9 +2,9 @@ arangosh&gt; db._query(<span class="hljs-string">`
........&gt; FOR i IN 1..@count INSERT
........&gt; { _key: CONCAT('anothertest', TO_STRING(i)) }
........&gt; INTO mycollection`</span>,
........&gt; {count: <span class="hljs-number">100</span>},
........&gt; {<span class="hljs-attr">count</span>: <span class="hljs-number">100</span>},
........&gt; {},
........&gt; {fullCount: <span class="hljs-literal">true</span>}
........&gt; {<span class="hljs-attr">fullCount</span>: <span class="hljs-literal">true</span>}
........&gt; ).getExtra();
{
<span class="hljs-string">"stats"</span> : {
@ -13,7 +13,7 @@ arangosh&gt; db._query(<span class="hljs-string">`
<span class="hljs-string">"scannedFull"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"scannedIndex"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"filtered"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0019931793212890625</span>
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0015411376953125</span>
},
<span class="hljs-string">"warnings"</span> : [ ]
}
@ -21,8 +21,8 @@ arangosh&gt; db._query({
........&gt; <span class="hljs-string">"query"</span>: <span class="hljs-string">`FOR i IN 200..@count INSERT
........&gt; { _key: CONCAT('anothertest', TO_STRING(i)) }
........&gt; INTO mycollection`</span>,
........&gt; <span class="hljs-string">"bindVars"</span>: {count: <span class="hljs-number">300</span>},
........&gt; <span class="hljs-string">"options"</span>: { fullCount: <span class="hljs-literal">true</span>}
........&gt; <span class="hljs-string">"bindVars"</span>: {<span class="hljs-attr">count</span>: <span class="hljs-number">300</span>},
........&gt; <span class="hljs-string">"options"</span>: { <span class="hljs-attr">fullCount</span>: <span class="hljs-literal">true</span>}
........&gt; }).getExtra();
{
<span class="hljs-string">"stats"</span> : {
@ -31,7 +31,7 @@ arangosh&gt; db._query({
<span class="hljs-string">"scannedFull"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"scannedIndex"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"filtered"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0018649101257324219</span>
<span class="hljs-string">"executionTime"</span> : <span class="hljs-number">0.0015499591827392578</span>
},
<span class="hljs-string">"warnings"</span> : [ ]
}

View File

@ -25,7 +25,8 @@ arangosh&gt; stmt.explain();
<span class="hljs-string">"id"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"user"</span>
},
<span class="hljs-string">"random"</span> : <span class="hljs-literal">false</span>
<span class="hljs-string">"random"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"satellite"</span> : <span class="hljs-literal">false</span>
},
{
<span class="hljs-string">"type"</span> : <span class="hljs-string">"ReturnNode"</span>,
@ -59,7 +60,7 @@ arangosh&gt; stmt.explain();
},
<span class="hljs-string">"warnings"</span> : [ ],
<span class="hljs-string">"stats"</span> : {
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">26</span>,
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">27</span>,
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
},

View File

@ -1,5 +1,5 @@
arangosh&gt; <span class="hljs-keyword">var</span> formatPlan = <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">plan</span>) </span>{
........&gt; <span class="hljs-keyword">return</span> { estimatedCost: plan.estimatedCost,
........&gt; <span class="hljs-keyword">return</span> { <span class="hljs-attr">estimatedCost</span>: plan.estimatedCost,
........&gt; nodes: plan.nodes.map(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">node</span>) </span>{
........&gt; <span class="hljs-keyword">return</span> node.type; }) }; };
arangosh&gt; formatPlan(stmt.explain().plan);

View File

@ -23,13 +23,14 @@ arangosh&gt; stmt.explain();
<span class="hljs-string">"estimatedNrItems"</span> : <span class="hljs-number">1</span>,
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"_users"</span>,
<span class="hljs-string">"satellite"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"outVariable"</span> : {
<span class="hljs-string">"id"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"doc"</span>
},
<span class="hljs-string">"indexes"</span> : [
{
<span class="hljs-string">"id"</span> : <span class="hljs-string">"10"</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"11"</span>,
<span class="hljs-string">"type"</span> : <span class="hljs-string">"hash"</span>,
<span class="hljs-string">"fields"</span> : [
<span class="hljs-string">"user"</span>
@ -111,7 +112,7 @@ arangosh&gt; stmt.explain();
},
<span class="hljs-string">"warnings"</span> : [ ],
<span class="hljs-string">"stats"</span> : {
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">26</span>,
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">27</span>,
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
},

View File

@ -1,4 +1,4 @@
arangosh&gt; <span class="hljs-keyword">var</span> stmt = db._createStatement(
........&gt; <span class="hljs-string">"FOR user IN _users FILTER user.user == 'root' RETURN user"</span>);
arangosh&gt; stmt.explain({ allPlans: <span class="hljs-literal">true</span> }).plans.length;
arangosh&gt; stmt.explain({ <span class="hljs-attr">allPlans</span>: <span class="hljs-literal">true</span> }).plans.length;
<span class="hljs-number">1</span>

View File

@ -1,4 +1,4 @@
arangosh&gt; stmt.explain({ allPlans: <span class="hljs-literal">true</span> }).plans.map(
arangosh&gt; stmt.explain({ <span class="hljs-attr">allPlans</span>: <span class="hljs-literal">true</span> }).plans.map(
........&gt; <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">plan</span>) </span>{ <span class="hljs-keyword">return</span> formatPlan(plan); });
[
{

View File

@ -1,4 +1,4 @@
arangosh&gt; stmt.explain({ optimizer: {
arangosh&gt; stmt.explain({ <span class="hljs-attr">optimizer</span>: {
........&gt; rules: [ <span class="hljs-string">"-all"</span>, <span class="hljs-string">"+remove-redundant-calculations"</span> ] } });
{
<span class="hljs-string">"plan"</span> : {
@ -24,7 +24,8 @@ arangosh&gt; stmt.explain({ optimizer: {
<span class="hljs-string">"id"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"user"</span>
},
<span class="hljs-string">"random"</span> : <span class="hljs-literal">false</span>
<span class="hljs-string">"random"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"satellite"</span> : <span class="hljs-literal">false</span>
},
{
<span class="hljs-string">"type"</span> : <span class="hljs-string">"CalculationNode"</span>,
@ -111,7 +112,7 @@ arangosh&gt; stmt.explain({ optimizer: {
<span class="hljs-string">"warnings"</span> : [ ],
<span class="hljs-string">"stats"</span> : {
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">1</span>,
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">25</span>,
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">26</span>,
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
},
<span class="hljs-string">"cacheable"</span> : <span class="hljs-literal">true</span>

View File

@ -1,9 +1,9 @@
arangosh&gt; db._create("test");
[ArangoCollection 6947, "test" (type document, status loaded)]
[ArangoCollection 6948, "test" (type document, status loaded)]
arangosh&gt; for (i = 0; i &lt; 100; ++i) { db.test.save({ value: i }); }
arangosh&gt; db.test.ensureIndex({ type: "skiplist", fields: [ "value" ] });
{
"id" : "test/7251",
"id" : "test/7252",
"type" : "skiplist",
"fields" : [
"value"

View File

@ -21,13 +21,14 @@ arangosh&gt; stmt.explain();
<span class="hljs-string">"estimatedNrItems"</span> : <span class="hljs-number">50</span>,
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"test"</span>,
<span class="hljs-string">"satellite"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"outVariable"</span> : {
<span class="hljs-string">"id"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"i"</span>
},
<span class="hljs-string">"indexes"</span> : [
{
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7251"</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7252"</span>,
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
<span class="hljs-string">"fields"</span> : [
<span class="hljs-string">"value"</span>
@ -149,7 +150,7 @@ arangosh&gt; stmt.explain();
},
<span class="hljs-string">"warnings"</span> : [ ],
<span class="hljs-string">"stats"</span> : {
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">26</span>,
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">27</span>,
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
},

View File

@ -1,4 +1,4 @@
arangosh&gt; stmt.explain({ allPlans: <span class="hljs-literal">true</span> });
arangosh&gt; stmt.explain({ <span class="hljs-attr">allPlans</span>: <span class="hljs-literal">true</span> });
{
<span class="hljs-string">"plans"</span> : [
{
@ -20,13 +20,14 @@ arangosh&gt; stmt.explain({ allPlans: <span class="hljs-literal">true</span> });
<span class="hljs-string">"estimatedNrItems"</span> : <span class="hljs-number">50</span>,
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"test"</span>,
<span class="hljs-string">"satellite"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"outVariable"</span> : {
<span class="hljs-string">"id"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"i"</span>
},
<span class="hljs-string">"indexes"</span> : [
{
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7251"</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7252"</span>,
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
<span class="hljs-string">"fields"</span> : [
<span class="hljs-string">"value"</span>
@ -149,7 +150,7 @@ arangosh&gt; stmt.explain({ allPlans: <span class="hljs-literal">true</span> });
],
<span class="hljs-string">"warnings"</span> : [ ],
<span class="hljs-string">"stats"</span> : {
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">26</span>,
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">27</span>,
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
}

View File

@ -1,4 +1,4 @@
arangosh&gt; stmt.explain({ optimizer: { rules: [ <span class="hljs-string">"-all"</span> ] } });
arangosh&gt; stmt.explain({ <span class="hljs-attr">optimizer</span>: { <span class="hljs-attr">rules</span>: [ <span class="hljs-string">"-all"</span> ] } });
{
<span class="hljs-string">"plan"</span> : {
<span class="hljs-string">"nodes"</span> : [
@ -23,7 +23,8 @@ arangosh&gt; stmt.explain({ optimizer: { rules: [ <span class="hljs-string">"-al
<span class="hljs-string">"id"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"i"</span>
},
<span class="hljs-string">"random"</span> : <span class="hljs-literal">false</span>
<span class="hljs-string">"random"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"satellite"</span> : <span class="hljs-literal">false</span>
},
{
<span class="hljs-string">"type"</span> : <span class="hljs-string">"CalculationNode"</span>,
@ -189,7 +190,7 @@ arangosh&gt; stmt.explain({ optimizer: { rules: [ <span class="hljs-string">"-al
<span class="hljs-string">"warnings"</span> : [ ],
<span class="hljs-string">"stats"</span> : {
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">26</span>,
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">27</span>,
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
},
<span class="hljs-string">"cacheable"</span> : <span class="hljs-literal">true</span>

View File

@ -1,4 +1,4 @@
arangosh&gt; stmt.explain({ optimizer: { rules: [ <span class="hljs-string">"-all"</span>, <span class="hljs-string">"+use-index-range"</span> ] } });
arangosh&gt; stmt.explain({ <span class="hljs-attr">optimizer</span>: { <span class="hljs-attr">rules</span>: [ <span class="hljs-string">"-all"</span>, <span class="hljs-string">"+use-index-range"</span> ] } });
{
<span class="hljs-string">"plan"</span> : {
<span class="hljs-string">"nodes"</span> : [
@ -23,7 +23,8 @@ arangosh&gt; stmt.explain({ optimizer: { rules: [ <span class="hljs-string">"-al
<span class="hljs-string">"id"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"i"</span>
},
<span class="hljs-string">"random"</span> : <span class="hljs-literal">false</span>
<span class="hljs-string">"random"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"satellite"</span> : <span class="hljs-literal">false</span>
},
{
<span class="hljs-string">"type"</span> : <span class="hljs-string">"CalculationNode"</span>,
@ -189,7 +190,7 @@ arangosh&gt; stmt.explain({ optimizer: { rules: [ <span class="hljs-string">"-al
<span class="hljs-string">"warnings"</span> : [ ],
<span class="hljs-string">"stats"</span> : {
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">26</span>,
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">27</span>,
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
},
<span class="hljs-string">"cacheable"</span> : <span class="hljs-literal">true</span>

View File

@ -1,4 +1,4 @@
arangosh&gt; stmt.explain({ optimizer: { rules: [ <span class="hljs-string">"-use-index-range"</span>, <span class="hljs-string">"-use-index-for-sort"</span> ] } });
arangosh&gt; stmt.explain({ <span class="hljs-attr">optimizer</span>: { <span class="hljs-attr">rules</span>: [ <span class="hljs-string">"-use-index-range"</span>, <span class="hljs-string">"-use-index-for-sort"</span> ] } });
{
<span class="hljs-string">"plan"</span> : {
<span class="hljs-string">"nodes"</span> : [
@ -19,13 +19,14 @@ arangosh&gt; stmt.explain({ optimizer: { rules: [ <span class="hljs-string">"-us
<span class="hljs-string">"estimatedNrItems"</span> : <span class="hljs-number">50</span>,
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"test"</span>,
<span class="hljs-string">"satellite"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"outVariable"</span> : {
<span class="hljs-string">"id"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"i"</span>
},
<span class="hljs-string">"indexes"</span> : [
{
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7251"</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7252"</span>,
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
<span class="hljs-string">"fields"</span> : [
<span class="hljs-string">"value"</span>
@ -165,7 +166,7 @@ arangosh&gt; stmt.explain({ optimizer: { rules: [ <span class="hljs-string">"-us
},
<span class="hljs-string">"warnings"</span> : [ ],
<span class="hljs-string">"stats"</span> : {
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">25</span>,
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">26</span>,
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">1</span>,
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
},

View File

@ -1,4 +1,4 @@
arangosh&gt; stmt.explain({ maxNumberOfPlans: <span class="hljs-number">1</span> });
arangosh&gt; stmt.explain({ <span class="hljs-attr">maxNumberOfPlans</span>: <span class="hljs-number">1</span> });
{
<span class="hljs-string">"plan"</span> : {
<span class="hljs-string">"nodes"</span> : [
@ -19,13 +19,14 @@ arangosh&gt; stmt.explain({ maxNumberOfPlans: <span class="hljs-number">1</span>
<span class="hljs-string">"estimatedNrItems"</span> : <span class="hljs-number">50</span>,
<span class="hljs-string">"database"</span> : <span class="hljs-string">"_system"</span>,
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"test"</span>,
<span class="hljs-string">"satellite"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"outVariable"</span> : {
<span class="hljs-string">"id"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"i"</span>
},
<span class="hljs-string">"indexes"</span> : [
{
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7251"</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"7252"</span>,
<span class="hljs-string">"type"</span> : <span class="hljs-string">"skiplist"</span>,
<span class="hljs-string">"fields"</span> : [
<span class="hljs-string">"value"</span>
@ -147,7 +148,7 @@ arangosh&gt; stmt.explain({ maxNumberOfPlans: <span class="hljs-number">1</span>
},
<span class="hljs-string">"warnings"</span> : [ ],
<span class="hljs-string">"stats"</span> : {
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">25</span>,
<span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">26</span>,
<span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">1</span>,
<span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span>
},

View File

@ -4,29 +4,29 @@ arangosh&gt; <span class="hljs-keyword">var</span> bonn=[<span class="hljs-numbe
arangosh&gt; db._query(<span class="hljs-string">`FOR startCity IN
........&gt; WITHIN(germanCity, @lat, @long, @radius)
........&gt; RETURN startCity`</span>,
........&gt; {lat: bonn[<span class="hljs-number">0</span>], long: bonn[<span class="hljs-number">1</span>], radius: <span class="hljs-number">400000</span>}
........&gt; {<span class="hljs-attr">lat</span>: bonn[<span class="hljs-number">0</span>], <span class="hljs-attr">long</span>: bonn[<span class="hljs-number">1</span>], <span class="hljs-attr">radius</span>: <span class="hljs-number">400000</span>}
........&gt; ).toArray()
[
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Cologne"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"germanCity/Cologne"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRfC---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Jqu---"</span>,
<span class="hljs-string">"population"</span> : <span class="hljs-number">1000000</span>,
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">50.9364</span>,
<span class="hljs-number">6.9528</span>
],
<span class="hljs-string">"population"</span> : <span class="hljs-number">1000000</span>
]
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Hamburg"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"germanCity/Hamburg"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRfC--_"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Jqu--_"</span>,
<span class="hljs-string">"population"</span> : <span class="hljs-number">1000000</span>,
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">53.5653</span>,
<span class="hljs-number">10.0014</span>
],
<span class="hljs-string">"population"</span> : <span class="hljs-number">1000000</span>
]
}
]

View File

@ -14,13 +14,13 @@ arangosh&gt; db._query(<span class="hljs-string">`FOR startCity IN
<span class="hljs-string">"traversedCity"</span> : {
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Lyon"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Lyon"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRfC--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Jqy---"</span>,
<span class="hljs-string">"population"</span> : <span class="hljs-number">80000</span>,
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">45.76</span>,
<span class="hljs-number">4.84</span>
],
<span class="hljs-string">"population"</span> : <span class="hljs-number">80000</span>
]
}
},
{
@ -28,13 +28,13 @@ arangosh&gt; db._query(<span class="hljs-string">`FOR startCity IN
<span class="hljs-string">"traversedCity"</span> : {
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Paris"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Paris"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRfG---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Jqy--_"</span>,
<span class="hljs-string">"population"</span> : <span class="hljs-number">4000000</span>,
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">48.8567</span>,
<span class="hljs-number">2.3508</span>
],
<span class="hljs-string">"population"</span> : <span class="hljs-number">4000000</span>
]
}
},
{
@ -42,13 +42,13 @@ arangosh&gt; db._query(<span class="hljs-string">`FOR startCity IN
<span class="hljs-string">"traversedCity"</span> : {
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Paris"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Paris"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRfG---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Jqy--_"</span>,
<span class="hljs-string">"population"</span> : <span class="hljs-number">4000000</span>,
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">48.8567</span>,
<span class="hljs-number">2.3508</span>
],
<span class="hljs-string">"population"</span> : <span class="hljs-number">4000000</span>
]
}
},
{
@ -56,13 +56,13 @@ arangosh&gt; db._query(<span class="hljs-string">`FOR startCity IN
<span class="hljs-string">"traversedCity"</span> : {
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Lyon"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Lyon"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRfC--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Jqy---"</span>,
<span class="hljs-string">"population"</span> : <span class="hljs-number">80000</span>,
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">45.76</span>,
<span class="hljs-number">4.84</span>
],
<span class="hljs-string">"population"</span> : <span class="hljs-number">80000</span>
]
}
},
{
@ -70,13 +70,13 @@ arangosh&gt; db._query(<span class="hljs-string">`FOR startCity IN
<span class="hljs-string">"traversedCity"</span> : {
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Cologne"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"germanCity/Cologne"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRfC---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Jqu---"</span>,
<span class="hljs-string">"population"</span> : <span class="hljs-number">1000000</span>,
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">50.9364</span>,
<span class="hljs-number">6.9528</span>
],
<span class="hljs-string">"population"</span> : <span class="hljs-number">1000000</span>
]
}
}
]

View File

@ -15,24 +15,24 @@ arangosh&gt; db._query(<span class="hljs-string">`FOR startCity IN
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Lyon"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Lyon"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRfC--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Jqy---"</span>,
<span class="hljs-string">"population"</span> : <span class="hljs-number">80000</span>,
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">45.76</span>,
<span class="hljs-number">4.84</span>
],
<span class="hljs-string">"population"</span> : <span class="hljs-number">80000</span>
]
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Paris"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Paris"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRfG---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Jqy--_"</span>,
<span class="hljs-string">"population"</span> : <span class="hljs-number">4000000</span>,
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">48.8567</span>,
<span class="hljs-number">2.3508</span>
],
<span class="hljs-string">"population"</span> : <span class="hljs-number">4000000</span>
]
}
]
},
@ -42,35 +42,35 @@ arangosh&gt; db._query(<span class="hljs-string">`FOR startCity IN
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Paris"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Paris"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRfG---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Jqy--_"</span>,
<span class="hljs-string">"population"</span> : <span class="hljs-number">4000000</span>,
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">48.8567</span>,
<span class="hljs-number">2.3508</span>
],
<span class="hljs-string">"population"</span> : <span class="hljs-number">4000000</span>
]
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Lyon"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"frenchCity/Lyon"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRfC--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Jqy---"</span>,
<span class="hljs-string">"population"</span> : <span class="hljs-number">80000</span>,
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">45.76</span>,
<span class="hljs-number">4.84</span>
],
<span class="hljs-string">"population"</span> : <span class="hljs-number">80000</span>
]
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"Cologne"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"germanCity/Cologne"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRfC---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Jqu---"</span>,
<span class="hljs-string">"population"</span> : <span class="hljs-number">1000000</span>,
<span class="hljs-string">"isCapital"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"loc"</span> : [
<span class="hljs-number">50.9364</span>,
<span class="hljs-number">6.9528</span>
],
<span class="hljs-string">"population"</span> : <span class="hljs-number">1000000</span>
]
}
]
}

View File

@ -1,5 +1,5 @@
arangosh&gt; col = db.example;
[ArangoCollection <span class="hljs-number">7351</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
[ArangoCollection <span class="hljs-number">7352</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
arangosh&gt; col.unload();
arangosh&gt; col;
[ArangoCollection <span class="hljs-number">7351</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status unloaded)]
[ArangoCollection <span class="hljs-number">7352</span>, <span class="hljs-string">"example"</span> (type <span class="hljs-built_in">document</span>, status unloaded)]

View File

@ -1,31 +1,31 @@
arangosh&gt; db._create(<span class="hljs-string">"vertex"</span>);
[ArangoCollection <span class="hljs-number">7354</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
[ArangoCollection <span class="hljs-number">7355</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
arangosh&gt; db._createEdgeCollection(<span class="hljs-string">"relation"</span>);
[ArangoCollection <span class="hljs-number">7356</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
arangosh&gt; v1 = db.vertex.insert({ name : <span class="hljs-string">"vertex 1"</span> });
[ArangoCollection <span class="hljs-number">7357</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
arangosh&gt; v1 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 1"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7359"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7359"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRku---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7360"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7360"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8KgS---"</span>
}
arangosh&gt; v2 = db.vertex.insert({ name : <span class="hljs-string">"vertex 2"</span> });
arangosh&gt; v2 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 2"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7363"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7363"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRky---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7364"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7364"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8KgW---"</span>
}
arangosh&gt; e1 = db.relation.insert(v1, v2, { label : <span class="hljs-string">"knows"</span> });
arangosh&gt; e1 = db.relation.insert(v1, v2, { <span class="hljs-attr">label</span> : <span class="hljs-string">"knows"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7366"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7366"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRky--_"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7367"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7367"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Kga---"</span>
}
arangosh&gt; db._document(e1);
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7366"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7366"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7359"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7363"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRky--_"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7367"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7367"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7360"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7364"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Kga---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>
}

View File

@ -1,33 +1,34 @@
arangosh&gt; db._create(<span class="hljs-string">"vertex"</span>);
[ArangoCollection <span class="hljs-number">7372</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
[ArangoCollection <span class="hljs-number">7373</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
arangosh&gt; db._createEdgeCollection(<span class="hljs-string">"relation"</span>);
[ArangoCollection <span class="hljs-number">7374</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
arangosh&gt; myGraph.v1 = db.vertex.insert({ name : <span class="hljs-string">"vertex 1"</span> });
[ArangoCollection <span class="hljs-number">7375</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
arangosh&gt; <span class="hljs-keyword">var</span> myGraph = {};
arangosh&gt; myGraph.v1 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 1"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7377"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7377"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRli---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7378"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7378"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Kxe---"</span>
}
arangosh&gt; myGraph.v2 = db.vertex.insert({ name : <span class="hljs-string">"vertex 2"</span> });
arangosh&gt; myGraph.v2 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 2"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7381"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7381"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRlm---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7382"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7382"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Kxe--_"</span>
}
arangosh&gt; myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2,
........&gt; { label : <span class="hljs-string">"knows"</span>});
........&gt; { <span class="hljs-attr">label</span> : <span class="hljs-string">"knows"</span>});
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7384"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7384"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRlm--_"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7385"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7385"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Kxi---"</span>
}
arangosh&gt; db._document(myGraph.e1);
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7384"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7384"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7377"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7381"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRlm--_"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7385"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7385"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7378"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7382"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Kxi---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>
}
arangosh&gt; db.relation.edges(myGraph.e1._id);

View File

@ -1,33 +1,33 @@
arangosh&gt; db._create(<span class="hljs-string">"vertex"</span>);
[ArangoCollection <span class="hljs-number">7391</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
[ArangoCollection <span class="hljs-number">7392</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
arangosh&gt; db._createEdgeCollection(<span class="hljs-string">"relation"</span>);
[ArangoCollection <span class="hljs-number">7393</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
arangosh&gt; myGraph.v1 = db.vertex.insert({ name : <span class="hljs-string">"vertex 1"</span> });
[ArangoCollection <span class="hljs-number">7394</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
arangosh&gt; myGraph.v1 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 1"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7396"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7396"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRmW---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7397"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7397"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L_2---"</span>
}
arangosh&gt; myGraph.v2 = db.vertex.insert({ name : <span class="hljs-string">"vertex 2"</span> });
arangosh&gt; myGraph.v2 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 2"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7400"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7400"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRma---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7401"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7401"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L_2--_"</span>
}
arangosh&gt; myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2,
........&gt; { label : <span class="hljs-string">"knows"</span>});
........&gt; { <span class="hljs-attr">label</span> : <span class="hljs-string">"knows"</span>});
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7403"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7403"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRma--_"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7404"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7404"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L_6---"</span>
}
arangosh&gt; db._document(myGraph.e1);
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7403"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7403"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7396"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7400"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRma--_"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7404"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7404"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7397"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7401"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L_6---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>
}
arangosh&gt; db.relation.inEdges(myGraph.v1._id);
@ -35,11 +35,11 @@ arangosh&gt; db.relation.inEdges(myGraph.v1._id);
arangosh&gt; db.relation.inEdges(myGraph.v2._id);
[
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7403"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7403"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7396"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7400"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRma--_"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7404"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7404"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7397"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7401"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L_6---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>
}
]

View File

@ -1,43 +1,43 @@
arangosh&gt; db._create(<span class="hljs-string">"vertex"</span>);
[ArangoCollection <span class="hljs-number">7411</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
[ArangoCollection <span class="hljs-number">7412</span>, <span class="hljs-string">"vertex"</span> (type <span class="hljs-built_in">document</span>, status loaded)]
arangosh&gt; db._createEdgeCollection(<span class="hljs-string">"relation"</span>);
[ArangoCollection <span class="hljs-number">7413</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
arangosh&gt; myGraph.v1 = db.vertex.insert({ name : <span class="hljs-string">"vertex 1"</span> });
[ArangoCollection <span class="hljs-number">7414</span>, <span class="hljs-string">"relation"</span> (type edge, status loaded)]
arangosh&gt; myGraph.v1 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 1"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7416"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7416"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRnO---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7417"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7417"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8LRG---"</span>
}
arangosh&gt; myGraph.v2 = db.vertex.insert({ name : <span class="hljs-string">"vertex 2"</span> });
arangosh&gt; myGraph.v2 = db.vertex.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"vertex 2"</span> });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7420"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7420"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRnO--_"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"vertex/7421"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7421"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8LRK---"</span>
}
arangosh&gt; myGraph.e1 = db.relation.insert(myGraph.v1, myGraph.v2,
........&gt; { label : <span class="hljs-string">"knows"</span>});
........&gt; { <span class="hljs-attr">label</span> : <span class="hljs-string">"knows"</span>});
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7423"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7423"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRnO--A"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7424"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7424"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8LRK--_"</span>
}
arangosh&gt; db._document(myGraph.e1);
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7423"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7423"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7416"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7420"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRnO--A"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7424"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7424"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7417"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7421"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8LRK--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>
}
arangosh&gt; db.relation.outEdges(myGraph.v1._id);
[
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7423"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7423"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7416"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7420"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRnO--A"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7424"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7424"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"vertex/7417"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"vertex/7421"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8LRK--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"knows"</span>
}
]

View File

@ -5,170 +5,170 @@ arangosh&gt; db.circles.toArray();
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"I"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/I"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpO--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhm--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"9"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"G"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/G"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpO---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhi--A"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"7"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"F"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/F"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpK--B"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhi--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"6"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"A"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpG---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lha---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"1"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"E"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/E"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpK--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhi---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"5"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"C"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/C"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpK---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhe---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"3"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"D"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/D"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpK--_"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhe--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"4"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"J"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/J"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpO--B"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhq---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"10"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"B"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/B"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpG--_"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lha--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"2"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"H"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/H"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpO--_"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhm---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"8"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"K"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/K"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpO--C"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhq--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"11"</span>
}
]
arangosh&gt; db.edges.toArray();
[
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7469"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7469"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/C"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpS--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blarg"</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">"_key"</span> : <span class="hljs-string">"7478"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7478"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/E"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/F"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpW---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_schubi"</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">"_key"</span> : <span class="hljs-string">"7472"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7472"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7473"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7473"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/C"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/D"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpS--A"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blorg"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhu--_"</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">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blorg"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7487"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7487"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/H"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/I"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpW--B"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blub"</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">"_key"</span> : <span class="hljs-string">"7493"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7493"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/J"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/K"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpa--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zup"</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">"_key"</span> : <span class="hljs-string">"7490"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7490"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/J"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpa---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zip"</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">"_key"</span> : <span class="hljs-string">"7465"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7465"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7466"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7466"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/B"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpS---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_bar"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhq--A"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_bar"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7481"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7481"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/G"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpW--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_foo"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7491"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7491"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/J"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lh2--A"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zip"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7475"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7475"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/E"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpS--B"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blub"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7488"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7488"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/H"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/I"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lh2--_"</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">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blub"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7484"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7484"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7494"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7494"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/J"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/K"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lh6---"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zup"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7485"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7485"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/H"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRpW--A"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blob"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lh2---"</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">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blob"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7479"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7479"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/E"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/F"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhy--_"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_schubi"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7482"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7482"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/G"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhy--A"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_foo"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7470"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7470"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/C"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhu---"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blarg"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7476"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7476"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/E"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Lhy---"</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>
}
]

View File

@ -6,18 +6,18 @@ arangosh&gt; db._query(<span class="hljs-string">"FOR v, e IN OUTBOUND SHORTEST_
],
[
<span class="hljs-string">"B"</span>,
<span class="hljs-string">"7465"</span>
<span class="hljs-string">"7466"</span>
],
[
<span class="hljs-string">"C"</span>,
<span class="hljs-string">"7469"</span>
<span class="hljs-string">"7470"</span>
],
[
<span class="hljs-string">"D"</span>,
<span class="hljs-string">"7472"</span>
<span class="hljs-string">"7473"</span>
]
]
[object ArangoQueryCursor, count: <span class="hljs-number">4</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">4</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
arangosh&gt; db._query(<span class="hljs-string">"FOR v, e IN OUTBOUND SHORTEST_PATH 'circles/A' TO 'circles/D' edges RETURN [v._key, e._key]"</span>);
[
[
@ -26,15 +26,15 @@ arangosh&gt; db._query(<span class="hljs-string">"FOR v, e IN OUTBOUND SHORTEST_
],
[
<span class="hljs-string">"B"</span>,
<span class="hljs-string">"7465"</span>
<span class="hljs-string">"7466"</span>
],
[
<span class="hljs-string">"C"</span>,
<span class="hljs-string">"7469"</span>
<span class="hljs-string">"7470"</span>
],
[
<span class="hljs-string">"D"</span>,
<span class="hljs-string">"7472"</span>
<span class="hljs-string">"7473"</span>
]
]
[object ArangoQueryCursor, count: <span class="hljs-number">4</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">4</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]

View File

@ -6,18 +6,18 @@ arangosh&gt; db._query(<span class="hljs-string">"FOR a IN circles FILTER a._key
],
[
<span class="hljs-string">"B"</span>,
<span class="hljs-string">"7465"</span>
<span class="hljs-string">"7466"</span>
],
[
<span class="hljs-string">"C"</span>,
<span class="hljs-string">"7469"</span>
<span class="hljs-string">"7470"</span>
],
[
<span class="hljs-string">"D"</span>,
<span class="hljs-string">"7472"</span>
<span class="hljs-string">"7473"</span>
]
]
[object ArangoQueryCursor, count: <span class="hljs-number">4</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">4</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
arangosh&gt; db._query(<span class="hljs-string">"FOR a IN circles FILTER a._key == 'A' FOR d IN circles FILTER d._key == 'D' FOR v, e IN OUTBOUND SHORTEST_PATH a TO d edges RETURN [v._key, e._key]"</span>);
[
[
@ -26,15 +26,15 @@ arangosh&gt; db._query(<span class="hljs-string">"FOR a IN circles FILTER a._key
],
[
<span class="hljs-string">"B"</span>,
<span class="hljs-string">"7465"</span>
<span class="hljs-string">"7466"</span>
],
[
<span class="hljs-string">"C"</span>,
<span class="hljs-string">"7469"</span>
<span class="hljs-string">"7470"</span>
],
[
<span class="hljs-string">"D"</span>,
<span class="hljs-string">"7472"</span>
<span class="hljs-string">"7473"</span>
]
]
[object ArangoQueryCursor, count: <span class="hljs-number">4</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">4</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]

View File

@ -5,170 +5,170 @@ arangosh&gt; db.circles.toArray();
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"I"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/I"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRr6--B"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1m--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"9"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"G"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/G"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRr6--_"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1i--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"7"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"F"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/F"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRr6---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1i---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"6"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"A"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRry---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1a---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"1"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"E"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/E"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRr2--B"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1e--A"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"5"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"C"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/C"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRr2--_"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1e---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"3"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"D"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/D"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRr2--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1e--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"4"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"J"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/J"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRr6--C"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1m--A"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"10"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"B"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/B"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRr2---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1a--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"2"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"H"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/H"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRr6--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1m---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"8"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"K"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"circles/K"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRs----"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1q---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"11"</span>
}
]
arangosh&gt; db.edges.toArray();
[
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7562"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7562"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/G"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRsC--A"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_foo"</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">"_key"</span> : <span class="hljs-string">"7568"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7568"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/H"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/I"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRsG---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blub"</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">"_key"</span> : <span class="hljs-string">"7546"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7546"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/B"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRs---_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_bar"</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">"_key"</span> : <span class="hljs-string">"7556"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7556"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/E"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRsC---"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blub"</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">"_key"</span> : <span class="hljs-string">"7553"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7553"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/C"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/D"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRs---B"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blorg"</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">"_key"</span> : <span class="hljs-string">"7550"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7550"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/C"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRs---A"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blarg"</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">"_key"</span> : <span class="hljs-string">"7559"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7559"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/E"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/F"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRsC--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_schubi"</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">"_key"</span> : <span class="hljs-string">"7565"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7565"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/H"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRsC--B"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blob"</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">"_key"</span> : <span class="hljs-string">"7571"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7571"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/J"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRsG--_"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zip"</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">"_key"</span> : <span class="hljs-string">"7574"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7574"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7575"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7575"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/J"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/K"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRsG--A"</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zup"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L16---"</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">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zup"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7569"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7569"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/H"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/I"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L12---"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blub"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7551"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7551"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/C"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1q--A"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blarg"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7566"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7566"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/H"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1y--A"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_blob"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7563"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7563"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/G"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1y--_"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_foo"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7572"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7572"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/G"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/J"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L12--_"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"right_zip"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7554"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7554"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/C"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/D"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1u---"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_blorg"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7547"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7547"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/A"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/B"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1q--_"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_bar"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7560"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7560"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/E"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/F"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1y---"</span>,
<span class="hljs-string">"theFalse"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"theTruth"</span> : <span class="hljs-literal">true</span>,
<span class="hljs-string">"label"</span> : <span class="hljs-string">"left_schubi"</span>
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7557"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"edges/7557"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"circles/B"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"circles/E"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8L1u--_"</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>
}
]

View File

@ -11,7 +11,7 @@ arangosh&gt; db._query(<span class="hljs-string">"FOR v IN 1..3 OUTBOUND 'circle
<span class="hljs-string">"J"</span>,
<span class="hljs-string">"K"</span>
]
[object ArangoQueryCursor, count: <span class="hljs-number">10</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">10</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
arangosh&gt; db._query(<span class="hljs-string">"FOR v IN 1..3 OUTBOUND 'circles/A' edges RETURN v._key"</span>);
[
<span class="hljs-string">"B"</span>,
@ -25,4 +25,4 @@ arangosh&gt; db._query(<span class="hljs-string">"FOR v IN 1..3 OUTBOUND 'circle
<span class="hljs-string">"J"</span>,
<span class="hljs-string">"K"</span>
]
[object ArangoQueryCursor, count: <span class="hljs-number">10</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">10</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]

View File

@ -5,7 +5,7 @@ arangosh&gt; db._query(<span class="hljs-string">"FOR v IN 2..2 OUTBOUND 'circle
<span class="hljs-string">"H"</span>,
<span class="hljs-string">"J"</span>
]
[object ArangoQueryCursor, count: <span class="hljs-number">4</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">4</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
arangosh&gt; db._query(<span class="hljs-string">"FOR v IN 2 OUTBOUND 'circles/A' GRAPH 'traversalGraph' return v._key"</span>);
[
<span class="hljs-string">"C"</span>,
@ -13,4 +13,4 @@ arangosh&gt; db._query(<span class="hljs-string">"FOR v IN 2 OUTBOUND 'circles/A
<span class="hljs-string">"H"</span>,
<span class="hljs-string">"J"</span>
]
[object ArangoQueryCursor, count: <span class="hljs-number">4</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">4</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]

View File

@ -6,7 +6,7 @@ arangosh&gt; db._query(<span class="hljs-string">"FOR v, e, p IN 1..3 OUTBOUND '
<span class="hljs-string">"E"</span>,
<span class="hljs-string">"F"</span>
]
[object ArangoQueryCursor, count: <span class="hljs-number">5</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">5</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
arangosh&gt; db._query(<span class="hljs-string">"FOR v, e, p IN 1..3 OUTBOUND 'circles/A' GRAPH 'traversalGraph' FILTER p.edges[0].label != 'right_foo' RETURN v._key"</span>);
[
<span class="hljs-string">"B"</span>,
@ -15,4 +15,4 @@ arangosh&gt; db._query(<span class="hljs-string">"FOR v, e, p IN 1..3 OUTBOUND '
<span class="hljs-string">"E"</span>,
<span class="hljs-string">"F"</span>
]
[object ArangoQueryCursor, count: <span class="hljs-number">5</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">5</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]

View File

@ -4,11 +4,11 @@ arangosh&gt; db._query(<span class="hljs-string">"FOR v,e,p IN 1..3 OUTBOUND 'ci
<span class="hljs-string">"C"</span>,
<span class="hljs-string">"D"</span>
]
[object ArangoQueryCursor, count: <span class="hljs-number">3</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">3</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
arangosh&gt; db._query(<span class="hljs-string">"FOR v,e,p IN 1..3 OUTBOUND 'circles/A' GRAPH 'traversalGraph' FILTER p.vertices[1]._key != 'G' AND p.edges[1].label != 'left_blub' return v._key"</span>);
[
<span class="hljs-string">"B"</span>,
<span class="hljs-string">"C"</span>,
<span class="hljs-string">"D"</span>
]
[object ArangoQueryCursor, count: <span class="hljs-number">3</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">3</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]

View File

@ -2,13 +2,13 @@ arangosh&gt; db._query(<span class="hljs-string">"FOR v IN 1..3 OUTBOUND 'circle
[
<span class="hljs-string">"F"</span>
]
[object ArangoQueryCursor, count: <span class="hljs-number">1</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">1</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
arangosh&gt; db._query(<span class="hljs-string">"FOR v IN 1..3 INBOUND 'circles/E' GRAPH 'traversalGraph' return v._key"</span>);
[
<span class="hljs-string">"B"</span>,
<span class="hljs-string">"A"</span>
]
[object ArangoQueryCursor, count: <span class="hljs-number">2</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">2</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
arangosh&gt; db._query(<span class="hljs-string">"FOR v IN 1..3 ANY 'circles/E' GRAPH 'traversalGraph' return v._key"</span>);
[
<span class="hljs-string">"F"</span>,
@ -18,4 +18,4 @@ arangosh&gt; db._query(<span class="hljs-string">"FOR v IN 1..3 ANY 'circles/E'
<span class="hljs-string">"A"</span>,
<span class="hljs-string">"G"</span>
]
[object ArangoQueryCursor, count: <span class="hljs-number">6</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">6</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]

View File

@ -14,11 +14,12 @@ Execution plan:
7 ReturnNode 1 - RETURN #8
Indexes used:
none
By Type Collection Unique Sparse Selectivity Fields Ranges
2 edge edges false false 85.00 % [ `_from`, `_to` ] base OUTBOUND
Traversals on graphs:
Id Depth Vertex collections Edge collections Filter conditions
2 1..3 circles edges
Id Depth Vertex collections Edge collections Options Filter conditions
2 1..3 circles edges uniqueVertices: none, uniqueEdges: path
Optimization rules applied:
Id RuleName
@ -42,11 +43,13 @@ Execution plan:
6 ReturnNode 1 - RETURN #7
Indexes used:
none
By Type Collection Unique Sparse Selectivity Fields Ranges
2 edge edges false false 85.00 % [ `_from`, `_to` ] base OUTBOUND
2 edge edges false false 85.00 % [ `_from`, `_to` ] level 0 OUTBOUND
Traversals on graphs:
Id Depth Vertex collections Edge collections Filter conditions
2 1..3 circles edges (p.`edges`[0].`label` == "right_foo")
Id Depth Vertex collections Edge collections Options Filter conditions
2 1..3 circles edges uniqueVertices: none, uniqueEdges: path (p.`edges`[0].`label` == "right_foo")
Optimization rules applied:
Id RuleName

View File

@ -8,7 +8,7 @@ arangosh&gt; db._routing.save({
........&gt; }
........&gt; });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7613"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7613"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRuO---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7614"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7614"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8MF6---"</span>
}

View File

@ -1,33 +1,33 @@
arangosh&gt; db._routing.save({
........&gt; url: { match: <span class="hljs-string">"/hello/world"</span> },
........&gt; content: { contentType: <span class="hljs-string">"text/plain"</span>, body: <span class="hljs-string">"Match No 1"</span>} });
........&gt; url: { <span class="hljs-attr">match</span>: <span class="hljs-string">"/hello/world"</span> },
........&gt; content: { <span class="hljs-attr">contentType</span>: <span class="hljs-string">"text/plain"</span>, <span class="hljs-attr">body</span>: <span class="hljs-string">"Match No 1"</span>} });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7624"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7624"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRva---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7625"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7625"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8MI2---"</span>
}
arangosh&gt; db._routing.save({
........&gt; url: { match: <span class="hljs-string">"/hello/:name"</span>, constraint: { name: <span class="hljs-string">"/[a-z]+/"</span> } },
........&gt; content: { contentType: <span class="hljs-string">"text/plain"</span>, body: <span class="hljs-string">"Match No 2"</span>} });
........&gt; url: { <span class="hljs-attr">match</span>: <span class="hljs-string">"/hello/:name"</span>, <span class="hljs-attr">constraint</span>: { <span class="hljs-attr">name</span>: <span class="hljs-string">"/[a-z]+/"</span> } },
........&gt; content: { <span class="hljs-attr">contentType</span>: <span class="hljs-string">"text/plain"</span>, <span class="hljs-attr">body</span>: <span class="hljs-string">"Match No 2"</span>} });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7628"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7628"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRve---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7629"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7629"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8MI6---"</span>
}
arangosh&gt; db._routing.save({
........&gt; url: { match: <span class="hljs-string">"/:something/world"</span> },
........&gt; content: { contentType: <span class="hljs-string">"text/plain"</span>, body: <span class="hljs-string">"Match No 3"</span>} });
........&gt; url: { <span class="hljs-attr">match</span>: <span class="hljs-string">"/:something/world"</span> },
........&gt; content: { <span class="hljs-attr">contentType</span>: <span class="hljs-string">"text/plain"</span>, <span class="hljs-attr">body</span>: <span class="hljs-string">"Match No 3"</span>} });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7631"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7631"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRve--_"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7632"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7632"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8MJ----"</span>
}
arangosh&gt; db._routing.save({
........&gt; url: { match: <span class="hljs-string">"/hi/*"</span> },
........&gt; content: { contentType: <span class="hljs-string">"text/plain"</span>, body: <span class="hljs-string">"Match No 4"</span>} });
........&gt; url: { <span class="hljs-attr">match</span>: <span class="hljs-string">"/hi/*"</span> },
........&gt; content: { <span class="hljs-attr">contentType</span>: <span class="hljs-string">"text/plain"</span>, <span class="hljs-attr">body</span>: <span class="hljs-string">"Match No 4"</span>} });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7634"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7634"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRve--A"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/7635"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7635"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8MJ---_"</span>
}
arangosh&gt; <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()

View File

@ -7,15 +7,15 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial
EOF
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
etag: _U-_pRzm---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8Me2---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"edge"</span> : {
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7683"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7683"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pRzm---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/7684"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7684"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Me2---"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
}

View File

@ -12,8 +12,8 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial
EOF
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
etag: _U-_pR1C---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8M1y---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
@ -47,7 +47,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
<span class="hljs-string">"numberOfShards"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pR1C---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8M1y---"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
}

View File

@ -5,15 +5,15 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial
EOF
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
etag: _U-_pR5m---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8Nd----
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"vertex"</span> : {
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"male/7784"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7784"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pR5m---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"male/7785"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"7785"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Nd----"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
}

View File

@ -5,8 +5,8 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial
EOF
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
etag: _U-_pR7G---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8N26---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
@ -32,7 +32,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
<span class="hljs-string">"numberOfShards"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pR7G---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8N26---"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
}

View File

@ -16,8 +16,8 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial
EOF
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
etag: _U-_pR9i---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8OaG---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
@ -39,7 +39,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
<span class="hljs-string">"numberOfShards"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/myGraph"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pR9i---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8OaG---"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
}

View File

@ -21,8 +21,8 @@ shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/gharial
EOF
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
etag: _U-_pS-y---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8PP6---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
@ -44,7 +44,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
<span class="hljs-string">"numberOfShards"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/myGraph"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pS-y---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8PP6---"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
}

View File

@ -1,8 +1,8 @@
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">202</span> Accepted
etag: _U-_pSHi---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8Qw2---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
@ -17,7 +17,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
<span class="hljs-string">"numberOfShards"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSHi---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Qw2---"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
}

View File

@ -1,8 +1,8 @@
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
etag: _U-_pSJi--A
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8RJi---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
@ -11,7 +11,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/aliceAndBob"</span>,
<span class="hljs-string">"_from"</span> : <span class="hljs-string">"female/alice"</span>,
<span class="hljs-string">"_to"</span> : <span class="hljs-string">"male/bob"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSJi--A"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8RJi---"</span>,
<span class="hljs-string">"type"</span> : <span class="hljs-string">"married"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>

View File

@ -1,8 +1,8 @@
shell> curl --dump - http://localhost:8529/_api/gharial/myGraph
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> OK
etag: _U-_pSLe---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8Rji---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
@ -24,7 +24,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
<span class="hljs-string">"numberOfShards"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/myGraph"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSLe---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Rji---"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>
}

View File

@ -1,15 +1,15 @@
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
etag: _U-_pSNK---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8R76---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"vertex"</span> : {
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"alice"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"female/alice"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSNK---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8R76---"</span>,
<span class="hljs-string">"name"</span> : <span class="hljs-string">"Alice"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>

View File

@ -9,7 +9,8 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"routeplanner"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/routeplanner"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSQm---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Sha---"</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>,
@ -40,13 +41,13 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
<span class="hljs-string">"germanCity"</span>
]
}
],
<span class="hljs-string">"orphanCollections"</span> : [ ]
]
},
{
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"social"</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSPK---"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8SRS---"</span>,
<span class="hljs-string">"orphanCollections"</span> : [ ],
<span class="hljs-string">"edgeDefinitions"</span> : [
{
<span class="hljs-string">"collection"</span> : <span class="hljs-string">"relation"</span>,
@ -59,8 +60,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
<span class="hljs-string">"male"</span>
]
}
],
<span class="hljs-string">"orphanCollections"</span> : [ ]
]
}
],
<span class="hljs-string">"code"</span> : <span class="hljs-number">200</span>

View File

@ -5,16 +5,16 @@ shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharia
EOF
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
etag: _U-_pSZi---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8UP----
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"vertex"</span> : {
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"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">"_U-_pSZi---"</span>,
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_U-_pSZS---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8UP----"</span>,
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_UWx8UOu---"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
}

View File

@ -5,16 +5,16 @@ shell> curl -X PATCH --data-binary @- --dump - http://localhost:8529/_api/gharia
EOF
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
etag: _U-_pSbW---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8Um2---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"edge"</span> : {
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/aliceAndBob"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"aliceAndBob"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSbW---"</span>,
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_U-_pSbK---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Um2---"</span>,
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_UWx8Umi--_"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
}

View File

@ -7,16 +7,16 @@ shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/
EOF
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
etag: _U-_pSdS---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8VBO---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"edge"</span> : {
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"relation/aliceAndBob"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"aliceAndBob"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSdS---"</span>,
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_U-_pSdG--B"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8VBO---"</span>,
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_UWx8VAy--_"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
}

View File

@ -1,8 +1,8 @@
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">202</span> Accepted
etag: _U-_pSf6---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8VZ2---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
@ -26,7 +26,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
<span class="hljs-string">"numberOfShards"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSf6---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8VZ2---"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
}

View File

@ -15,8 +15,8 @@ shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/
EOF
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
etag: _U-_pSkK---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8WMO---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
@ -42,7 +42,7 @@ content-type: application/json; charset=utf<span class="hljs-number">-8</span>
<span class="hljs-string">"numberOfShards"</span> : <span class="hljs-number">0</span>,
<span class="hljs-string">"smartGraphAttribute"</span> : <span class="hljs-string">""</span>,
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_graphs/social"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSkK---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8WMO---"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
}

View File

@ -6,16 +6,16 @@ shell> curl -X PUT --data-binary @- --dump - http://localhost:8529/_api/gharial/
EOF
HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">202</span> Accepted
etag: _U-_pSnq---
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
etag: _UWx8WtW---
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>,
<span class="hljs-string">"vertex"</span> : {
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"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">"_U-_pSnq---"</span>,
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_U-_pSnW---"</span>
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8WtW---"</span>,
<span class="hljs-string">"_oldRev"</span> : <span class="hljs-string">"_UWx8Ws6---"</span>
},
<span class="hljs-string">"code"</span> : <span class="hljs-number">202</span>
}

View File

@ -1,6 +1,6 @@
arangosh&gt; db.example.ensureIndex({ type: <span class="hljs-string">"skiplist"</span>, fields: [ <span class="hljs-string">"a"</span>, <span class="hljs-string">"b"</span> ] });
arangosh&gt; db.example.ensureIndex({ <span class="hljs-attr">type</span>: <span class="hljs-string">"skiplist"</span>, <span class="hljs-attr">fields</span>: [ <span class="hljs-string">"a"</span>, <span class="hljs-string">"b"</span> ] });
{
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/8749"</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/8757"</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&gt; <span class="hljs-keyword">var</span> indexInfo = db.example.getInd
arangosh&gt; indexInfo;
[
<span class="hljs-string">"example/0"</span>,
<span class="hljs-string">"example/8749"</span>
<span class="hljs-string">"example/8757"</span>
]
arangosh&gt; db._index(indexInfo[<span class="hljs-number">0</span>])
{
@ -31,7 +31,7 @@ arangosh&gt; db._index(indexInfo[<span class="hljs-number">0</span>])
}
arangosh&gt; db._index(indexInfo[<span class="hljs-number">1</span>])
{
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/8749"</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/8757"</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>,

View File

@ -1,7 +1,7 @@
arangosh&gt; <span class="hljs-keyword">var</span> explain = <span class="hljs-built_in">require</span>(<span class="hljs-string">"@arangodb/aql/explainer"</span>).explain;
arangosh&gt; db.example.ensureIndex({ type: <span class="hljs-string">"skiplist"</span>, fields: [ <span class="hljs-string">"a"</span>, <span class="hljs-string">"b"</span> ] });
arangosh&gt; db.example.ensureIndex({ <span class="hljs-attr">type</span>: <span class="hljs-string">"skiplist"</span>, <span class="hljs-attr">fields</span>: [ <span class="hljs-string">"a"</span>, <span class="hljs-string">"b"</span> ] });
{
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/8758"</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"example/8766"</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>,
@ -12,7 +12,7 @@ arangosh&gt; db.example.ensureIndex({ type: <span class="hljs-string">"skiplist"
<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&gt; explain(<span class="hljs-string">"FOR doc IN example FILTER doc.a &lt; 23 RETURN doc"</span>, {colors:<span class="hljs-literal">false</span>});
arangosh&gt; explain(<span class="hljs-string">"FOR doc IN example FILTER doc.a &lt; 23 RETURN doc"</span>, {<span class="hljs-attr">colors</span>:<span class="hljs-literal">false</span>});
Query string:
FOR doc IN example FILTER doc.a &lt; <span class="hljs-number">23</span> RETURN doc

View File

@ -6,7 +6,7 @@ EOF
HTTP/1.1 202 Accepted
content-type: text/plain; charset=utf-8
x-arango-async-id: 147747578002018
x-arango-async-id: 148412917679527
shell> curl --dump - http://localhost:8529/_api/job/pending
@ -14,9 +14,9 @@ HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> O
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
[
<span class="hljs-string">"147747578002018"</span>
<span class="hljs-string">"148412917679527"</span>
]
shell> curl -X PUT --dump - http://localhost:8529/_api/job/147747578002018/cancel
shell> curl -X PUT --dump - http://localhost:8529/_api/job/148412917679527/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>
@ -30,5 +30,5 @@ HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> O
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
[
<span class="hljs-string">"147747578002018"</span>
<span class="hljs-string">"148412917679527"</span>
]

View File

@ -2,7 +2,7 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
HTTP/1.1 202 Accepted
content-type: text/plain; charset=utf-8
x-arango-async-id: 147747578002027
x-arango-async-id: 148412917679536
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/all

View File

@ -2,7 +2,7 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
HTTP/1.1 202 Accepted
content-type: text/plain; charset=utf-8
x-arango-async-id: 147747578002032
x-arango-async-id: 148412917679541
shell> curl --dump - http://localhost:8529/_admin/time
@ -10,11 +10,11 @@ HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> O
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
{
<span class="hljs-string">"time"</span> : <span class="hljs-number">1477475783.372288</span>,
<span class="hljs-string">"time"</span> : <span class="hljs-number">1484129199.395645</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=1477475783.372288
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/expired?stamp=1484129199.395645
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>

View File

@ -2,9 +2,9 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
HTTP/1.1 202 Accepted
content-type: text/plain; charset=utf-8
x-arango-async-id: 147747578002041
x-arango-async-id: 148412917679550
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/147747578002041
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/148412917679550
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>

View File

@ -2,13 +2,13 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
HTTP/1.1 202 Accepted
content-type: text/plain; charset=utf-8
x-arango-async-id: 147747578002055
x-arango-async-id: 148412917679564
shell> curl -X PUT --dump - http://localhost:8529/_api/job/147747578002055
shell> curl -X PUT --dump - http://localhost:8529/_api/job/148412917679564
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">147747578002055</span>
x-arango-<span class="hljs-keyword">async</span>-id: <span class="hljs-number">148412917679564</span>
{
<span class="hljs-string">"server"</span> : <span class="hljs-string">"arango"</span>,

View File

@ -6,13 +6,13 @@ EOF
HTTP/1.1 202 Accepted
content-type: text/plain; charset=utf-8
x-arango-async-id: 147747578002060
x-arango-async-id: 148412917679569
shell> curl -X PUT --dump - http://localhost:8529/_api/job/147747578002060
shell> curl -X PUT --dump - http://localhost:8529/_api/job/148412917679569
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">147747578002060</span>
x-arango-<span class="hljs-keyword">async</span>-id: <span class="hljs-number">148412917679569</span>
{
<span class="hljs-string">"error"</span> : <span class="hljs-literal">true</span>,

View File

@ -2,7 +2,7 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
HTTP/1.1 202 Accepted
content-type: text/plain; charset=utf-8
x-arango-async-id: 147747578002065
x-arango-async-id: 148412917679574
shell> curl --dump - http://localhost:8529/_api/job/done
@ -10,5 +10,5 @@ HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> O
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
[
<span class="hljs-string">"147747578002065"</span>
<span class="hljs-string">"148412917679574"</span>
]

View File

@ -2,7 +2,7 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
HTTP/1.1 202 Accepted
content-type: text/plain; charset=utf-8
x-arango-async-id: 147747578002070
x-arango-async-id: 148412917679579
shell> curl --dump - http://localhost:8529/_api/job/pending

View File

@ -2,7 +2,7 @@ shell> curl --header 'x-arango-async: store' --dump - http://localhost:8529/_adm
HTTP/1.1 202 Accepted
content-type: text/plain; charset=utf-8
x-arango-async-id: 147747578002075
x-arango-async-id: 148412917679584
shell> curl --dump - http://localhost:8529/_api/job/pending
@ -10,9 +10,9 @@ HTTP/<span class="hljs-number">1.1</span> <span class="hljs-number">200</span> O
content-type: application/json; charset=utf<span class="hljs-number">-8</span>
[
<span class="hljs-string">"147747578002075"</span>
<span class="hljs-string">"148412917679584"</span>
]
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/147747578002075
shell> curl -X DELETE --dump - http://localhost:8529/_api/job/148412917679584
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>

View File

@ -2,13 +2,13 @@ shell> curl -X PUT --header 'x-arango-async: store' --dump - http://localhost:85
HTTP/1.1 202 Accepted
content-type: text/plain; charset=utf-8
x-arango-async-id: 147747578002082
x-arango-async-id: 148412917679591
shell> curl -X PUT --dump - http://localhost:8529/_api/job/147747578002082
shell> curl -X PUT --dump - http://localhost:8529/_api/job/148412917679591
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">147747578002082</span>
x-arango-<span class="hljs-keyword">async</span>-id: <span class="hljs-number">148412917679591</span>
{
<span class="hljs-string">"server"</span> : <span class="hljs-string">"arango"</span>,

View File

@ -2,9 +2,9 @@ shell> curl --header 'x-arango-async: store' --dump - http://localhost:8529/_adm
HTTP/1.1 202 Accepted
content-type: text/plain; charset=utf-8
x-arango-async-id: 147747578002087
x-arango-async-id: 148412917679596
shell> curl --dump - http://localhost:8529/_api/job/147747578002087
shell> curl --dump - http://localhost:8529/_api/job/148412917679596
HTTP/1.1 204 No Content
content-type: text/plain; charset=utf-8

View File

@ -6,8 +6,8 @@ arangosh&gt; db._routing.save({
........&gt; }
........&gt; });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8764"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8764"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSt6---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8772"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8772"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Xb2---"</span>
}
arangosh&gt; <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()

View File

@ -6,8 +6,8 @@ arangosh&gt; db._routing.save({
........&gt; }
........&gt; });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8775"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8775"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSvG---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8783"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8783"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8XdO---"</span>
}
arangosh&gt; <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()

View File

@ -5,7 +5,7 @@ arangosh&gt; db._routing.save({
........&gt; }
........&gt; });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8786"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8786"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSvi---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8794"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8794"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Xdu---"</span>
}

View File

@ -7,21 +7,21 @@ arangosh&gt; 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">14889</span>
<span class="hljs-string">"port"</span> : <span class="hljs-number">36164</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">51880</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"147747577998440"</span>
<span class="hljs-string">"port"</span> : <span class="hljs-number">37975</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"148412917676034"</span>
},
<span class="hljs-string">"internals"</span> : {
},
<span class="hljs-string">"headers"</span> : {
<span class="hljs-string">"authorization"</span> : <span class="hljs-string">"Basic cm9vdDo="</span>,
<span class="hljs-string">"connection"</span> : <span class="hljs-string">"Keep-Alive"</span>,
<span class="hljs-string">"user-agent"</span> : <span class="hljs-string">"ArangoDB"</span>,
<span class="hljs-string">"host"</span> : <span class="hljs-string">"127.0.0.1"</span>,
<span class="hljs-string">"accept-encoding"</span> : <span class="hljs-string">"deflate"</span>
<span class="hljs-string">"connection"</span> : <span class="hljs-string">"Keep-Alive"</span>,
<span class="hljs-string">"accept-encoding"</span> : <span class="hljs-string">"deflate"</span>,
<span class="hljs-string">"host"</span> : <span class="hljs-string">"127.0.0.1"</span>
},
<span class="hljs-string">"requestType"</span> : <span class="hljs-string">"GET"</span>,
<span class="hljs-string">"parameters"</span> : {

View File

@ -5,7 +5,7 @@ arangosh&gt; db._routing.save({
........&gt; }
........&gt; });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8797"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8797"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSw----"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8805"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8805"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8XeO---"</span>
}

View File

@ -7,21 +7,21 @@ arangosh&gt; 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">14889</span>
<span class="hljs-string">"port"</span> : <span class="hljs-number">36164</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">51880</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"147747577998440"</span>
<span class="hljs-string">"port"</span> : <span class="hljs-number">37975</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"148412917676034"</span>
},
<span class="hljs-string">"internals"</span> : {
},
<span class="hljs-string">"headers"</span> : {
<span class="hljs-string">"authorization"</span> : <span class="hljs-string">"Basic cm9vdDo="</span>,
<span class="hljs-string">"connection"</span> : <span class="hljs-string">"Keep-Alive"</span>,
<span class="hljs-string">"user-agent"</span> : <span class="hljs-string">"ArangoDB"</span>,
<span class="hljs-string">"host"</span> : <span class="hljs-string">"127.0.0.1"</span>,
<span class="hljs-string">"accept-encoding"</span> : <span class="hljs-string">"deflate"</span>
<span class="hljs-string">"connection"</span> : <span class="hljs-string">"Keep-Alive"</span>,
<span class="hljs-string">"accept-encoding"</span> : <span class="hljs-string">"deflate"</span>,
<span class="hljs-string">"host"</span> : <span class="hljs-string">"127.0.0.1"</span>
},
<span class="hljs-string">"requestType"</span> : <span class="hljs-string">"GET"</span>,
<span class="hljs-string">"parameters"</span> : {

View File

@ -5,7 +5,7 @@ arangosh&gt; db._routing.save({
........&gt; }
........&gt; });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8808"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8808"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSwe---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8816"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8816"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8XhS---"</span>
}

View File

@ -1,4 +1,4 @@
arangosh&gt; arango.GET(<span class="hljs-string">"hello/echo"</span>)
arangosh&gt; db._query(<span class="hljs-string">"FOR route IN _routing FILTER route.url == '/hello/echo' REMOVE route in _routing"</span>)
[object ArangoQueryCursor, count: <span class="hljs-number">0</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">0</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
arangosh&gt; <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()

View File

@ -5,7 +5,7 @@ arangosh&gt; db._routing.save({
........&gt; }
........&gt; })
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8819"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8819"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSw2---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8827"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8827"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Xhu---"</span>
}

View File

@ -6,5 +6,5 @@ arangosh&gt; arango.GET(<span class="hljs-string">"/hello/echo"</span>)
<span class="hljs-string">"errorMessage"</span> : <span class="hljs-string">"unknown path '/hello/echo'"</span>
}
arangosh&gt; db._query(<span class="hljs-string">"FOR route IN _routing FILTER route.url == '/hello/echo' REMOVE route in _routing"</span>)
[object ArangoQueryCursor, count: <span class="hljs-number">0</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">0</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
arangosh&gt; <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()

View File

@ -8,7 +8,7 @@ arangosh&gt; db._routing.save({
........&gt; }
........&gt; });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8826"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8826"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSxO---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8834"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8834"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8XiO---"</span>
}

View File

@ -7,21 +7,21 @@ arangosh&gt; 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">14889</span>
<span class="hljs-string">"port"</span> : <span class="hljs-number">36164</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">51880</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"147747577998440"</span>
<span class="hljs-string">"port"</span> : <span class="hljs-number">37975</span>,
<span class="hljs-string">"id"</span> : <span class="hljs-string">"148412917676034"</span>
},
<span class="hljs-string">"internals"</span> : {
},
<span class="hljs-string">"headers"</span> : {
<span class="hljs-string">"authorization"</span> : <span class="hljs-string">"Basic cm9vdDo="</span>,
<span class="hljs-string">"connection"</span> : <span class="hljs-string">"Keep-Alive"</span>,
<span class="hljs-string">"user-agent"</span> : <span class="hljs-string">"ArangoDB"</span>,
<span class="hljs-string">"host"</span> : <span class="hljs-string">"127.0.0.1"</span>,
<span class="hljs-string">"accept-encoding"</span> : <span class="hljs-string">"deflate"</span>
<span class="hljs-string">"connection"</span> : <span class="hljs-string">"Keep-Alive"</span>,
<span class="hljs-string">"accept-encoding"</span> : <span class="hljs-string">"deflate"</span>,
<span class="hljs-string">"host"</span> : <span class="hljs-string">"127.0.0.1"</span>
},
<span class="hljs-string">"requestType"</span> : <span class="hljs-string">"GET"</span>,
<span class="hljs-string">"parameters"</span> : {
@ -36,5 +36,5 @@ arangosh&gt; arango.GET(<span class="hljs-string">"/echo"</span>)
}
}
arangosh&gt; db._query(<span class="hljs-string">"FOR route IN _routing FILTER route.url == '/echo' REMOVE route in _routing"</span>)
[object ArangoQueryCursor, count: <span class="hljs-number">0</span>, hasMore: <span class="hljs-literal">false</span>]
[object ArangoQueryCursor, <span class="hljs-attr">count</span>: <span class="hljs-number">0</span>, <span class="hljs-attr">hasMore</span>: <span class="hljs-literal">false</span>]
arangosh&gt; <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()

View File

@ -8,7 +8,7 @@ arangosh&gt; db._modules.save({
........&gt; <span class="hljs-string">"};"</span>
........&gt; });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_modules/8837"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8837"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSyC---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_modules/8845"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8845"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Xji---"</span>
}

View File

@ -5,8 +5,8 @@ arangosh&gt; db._routing.save({
........&gt; }
........&gt; });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8841"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8841"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSyG---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8849"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8849"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8Xjm---"</span>
}
arangosh&gt; <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()

View File

@ -9,8 +9,8 @@ arangosh&gt; db._routing.save({
........&gt; }
........&gt; });
{
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8859"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8859"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_U-_pSyq---"</span>
<span class="hljs-string">"_id"</span> : <span class="hljs-string">"_routing/8867"</span>,
<span class="hljs-string">"_key"</span> : <span class="hljs-string">"8867"</span>,
<span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_UWx8XkO---"</span>
}
arangosh&gt; <span class="hljs-built_in">require</span>(<span class="hljs-string">"internal"</span>).reloadRouting()

Some files were not shown because too many files have changed in this diff Show More