From 6735bac8e33a489c7c69e7a086b8fb351e40498c Mon Sep 17 00:00:00 2001 From: jmvan Date: Wed, 16 Dec 2015 21:29:12 +0100 Subject: [PATCH] point out the user function is defined on the selected database --- Documentation/Books/Users/AqlExtending/Conventions.mdpp | 3 ++- Documentation/Books/Users/AqlExtending/Functions.mdpp | 6 +++--- Documentation/Books/Users/AqlExtending/README.mdpp | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Documentation/Books/Users/AqlExtending/Conventions.mdpp b/Documentation/Books/Users/AqlExtending/Conventions.mdpp index 9e459bb7f8..578ea7fc7d 100644 --- a/Documentation/Books/Users/AqlExtending/Conventions.mdpp +++ b/Documentation/Books/Users/AqlExtending/Conventions.mdpp @@ -82,7 +82,8 @@ to undefined behavior and should be avoided. !SECTION Miscellaneous Internally, user functions are stored in a system collection named -*_aqlfunctions*. That means that by default they are excluded from dumps +*_aqlfunctions* of the selected database. +That means that by default they are excluded from dumps created with [arangodump](../HttpBulkImports/Arangodump.md). To include AQL user functions in a dump, the dump should be started with the option *--include-system-collections true*. diff --git a/Documentation/Books/Users/AqlExtending/Functions.mdpp b/Documentation/Books/Users/AqlExtending/Functions.mdpp index b6f29a6acb..d2f1277ddb 100644 --- a/Documentation/Books/Users/AqlExtending/Functions.mdpp +++ b/Documentation/Books/Users/AqlExtending/Functions.mdpp @@ -1,7 +1,7 @@ !CHAPTER Registering and Unregistering User Functions -AQL user functions can be registered using the *aqlfunctions* object as -follows: +AQL user functions can be registered in the selected database +using the *aqlfunctions* object as follows: ```js var aqlfunctions = require("@arangodb/aql/functions"); @@ -24,4 +24,4 @@ function code must be specified. !SUBSECTION To Array -@startDocuBlock aqlFunctionsToArray \ No newline at end of file +@startDocuBlock aqlFunctionsToArray diff --git a/Documentation/Books/Users/AqlExtending/README.mdpp b/Documentation/Books/Users/AqlExtending/README.mdpp index adaeeac607..e09509fc01 100644 --- a/Documentation/Books/Users/AqlExtending/README.mdpp +++ b/Documentation/Books/Users/AqlExtending/README.mdpp @@ -4,9 +4,9 @@ AQL comes with a built-in set of functions, but it is not a fully-featured programming language. To add missing functionality or to simplify queries, users -may add their own functions to AQL. These functions can be written -in JavaScript, and must be registered via the API; -see [Registering Functions](../AqlExtending/Functions.md). +may add their own functions to AQL in the selected database. +These functions can be written in JavaScript, and must be +registered via the API; see [Registering Functions](../AqlExtending/Functions.md). In order to avoid conflicts with existing or future built-in function names, all user functions must be put into separate