1
0
Fork 0

Fix execution of these examples

This commit is contained in:
Willi Goesgens 2015-08-13 11:50:11 +02:00
parent beaa916ceb
commit adf6fd5321
1 changed files with 8 additions and 4 deletions

View File

@ -46,6 +46,7 @@ contain the error details embedded in a JSON object.
Valid query:
@startDocuBlockInline RestQueryValid
@EXAMPLE_ARANGOSH_RUN{RestQueryValid}
var url = "/_api/query";
var body = '{ "query" : "FOR p IN products FILTER p.name == @name LIMIT 2 RETURN p.n" }';
@ -56,9 +57,11 @@ Valid query:
logJsonResponse(response);
@END_EXAMPLE_ARANGOSH_RUN
@endDocuBlock RestQueryValid
Invalid query:
@startDocuBlockInline RestQueryInValid
@EXAMPLE_ARANGOSH_RUN{RestQueryInvalid}
var url = "/_api/query";
var body = '{ "query" : "FOR p IN products FILTER p.name = @name LIMIT 2 RETURN p.n" }';
@ -69,6 +72,7 @@ Invalid query:
logJsonResponse(response);
@END_EXAMPLE_ARANGOSH_RUN
@endDocuBlock RestQueryInValid
!SUBSECTION Query tracking