1
0
Fork 0

Documentation: Example of user data in _createDatabase

This commit is contained in:
Aurelijus Banelis 2015-08-15 22:22:27 +03:00
parent 80e3cd8c6f
commit cd9df3460e
1 changed files with 6 additions and 1 deletions

View File

@ -3357,8 +3357,13 @@ static void CreateDatabaseCoordinator (const v8::FunctionCallbackInfo<v8::Value>
/// require("org/arangodb/users").update(username, password, true);
/// require("org/arangodb/users").remove(username);
/// ```
/// Alternatively, you can specify user data directly. For example:
///
/// This method can only be used from within the *_system* database.
/// ```js
/// db._createDatabase("newDB", [], [{ username: "newUser", passwd: "123456", active: true}])
/// ```
///
/// Those methods can only be used from within the *_system* database.
/// @endDocuBlock
////////////////////////////////////////////////////////////////////////////////