"Fossies" - the Fresh Open Source Software Archive

Member "arangodb-3.4.7/Documentation/Examples/002_collectionAllNext.generated" (24 Jun 2019, 2741 Bytes) of package /linux/misc/arangodb-3.4.7.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "002_collectionAllNext.generated": 3.4.6.1_vs_3.4.7.

    1 arangosh&gt; db.five.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"one"</span> });
    2 { 
    3   <span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/159"</span>, 
    4   <span class="hljs-string">"_key"</span> : <span class="hljs-string">"159"</span>, 
    5   <span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_Y2g6gje--B"</span> 
    6 }
    7 arangosh&gt; db.five.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"two"</span> });
    8 { 
    9   <span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/163"</span>, 
   10   <span class="hljs-string">"_key"</span> : <span class="hljs-string">"163"</span>, 
   11   <span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_Y2g6gji--_"</span> 
   12 }
   13 arangosh&gt; db.five.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"three"</span> });
   14 { 
   15   <span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/166"</span>, 
   16   <span class="hljs-string">"_key"</span> : <span class="hljs-string">"166"</span>, 
   17   <span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_Y2g6gji--B"</span> 
   18 }
   19 arangosh&gt; db.five.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"four"</span> });
   20 { 
   21   <span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/169"</span>, 
   22   <span class="hljs-string">"_key"</span> : <span class="hljs-string">"169"</span>, 
   23   <span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_Y2g6gji--D"</span> 
   24 }
   25 arangosh&gt; db.five.insert({ <span class="hljs-attr">name</span> : <span class="hljs-string">"five"</span> });
   26 { 
   27   <span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/172"</span>, 
   28   <span class="hljs-string">"_key"</span> : <span class="hljs-string">"172"</span>, 
   29   <span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_Y2g6gjm--_"</span> 
   30 }
   31 arangosh&gt; db.five.all().limit(<span class="hljs-number">2</span>).toArray();
   32 [ 
   33   { 
   34     <span class="hljs-string">"_key"</span> : <span class="hljs-string">"166"</span>, 
   35     <span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/166"</span>, 
   36     <span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_Y2g6gji--B"</span>, 
   37     <span class="hljs-string">"name"</span> : <span class="hljs-string">"three"</span> 
   38   }, 
   39   { 
   40     <span class="hljs-string">"_key"</span> : <span class="hljs-string">"169"</span>, 
   41     <span class="hljs-string">"_id"</span> : <span class="hljs-string">"five/169"</span>, 
   42     <span class="hljs-string">"_rev"</span> : <span class="hljs-string">"_Y2g6gji--D"</span>, 
   43     <span class="hljs-string">"name"</span> : <span class="hljs-string">"four"</span> 
   44   } 
   45 ]