1
0
Fork 0

fix some more example snippets

This commit is contained in:
jsteemann 2017-02-13 08:38:41 +01:00
parent 238070b477
commit 9ce2956d98
2 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,8 @@ of *true*.
@EXAMPLES
@EXAMPLE_ARANGOSH_OUTPUT{EDGCOL_01_SaveEdgeCol}
~db._drop("vertex");
~db._drop("relation");
db._create("vertex");
db._createEdgeCollection("relation");
v1 = db.vertex.insert({ name : "vertex 1" });

View File

@ -42,6 +42,7 @@ from the request.
@EXAMPLES
@EXAMPLE_ARANGOSH_RUN{RestCreateUser}
~try { require("@arangodb/users").remove("admin@example"); } catch (err) {}
var url = "/_api/user";
var data = { user: "admin@example", passwd: "secure" };
var response = logCurlRequest('POST', url, data);
@ -49,6 +50,7 @@ from the request.
assert(response.code === 201);
logJsonResponse(response);
~require("@arangodb/users").remove("admin@example");
@END_EXAMPLE_ARANGOSH_RUN
@endDocuBlock