protected internal virtual Request createAqlFunctionRequest (string name, string code, AqlFunctionCreateOptions options) { return(new Request(name(), RequestType .POST, ArangoDBConstants.PATH_API_AQLFUNCTION).setBody(this.executor .Serialize(OptionsBuilder.build(options != null ? options : new AqlFunctionCreateOptions(), name, code)))); }
/// <summary>Create a new AQL user function</summary> /// <seealso><a href="https://docs.arangodb.com/current/HTTP/AqlUserFunctions/index.html#create-aql-user-function">API /// * Documentation</a></seealso> /// <param name="name">the fully qualified name of the user functions</param> /// <param name="code">a string representation of the function body</param> /// <param name="options">Additional options, can be null</param> /// <exception cref="ArangoDBException"/> /// <exception cref="ArangoDBException"/> public virtual void createAqlFunction(string name, string code, AqlFunctionCreateOptions options) { executor.execute(this.createAqlFunctionRequest(name, code, options), typeof(java.lang.Void)); }