robvandenbogaard / elm-terminusdb / TerminusDb.Api.AddUser

This module provides the api call command to add a user to the TerminusDB database.

It gets configured by the Request data type, constructed by the request and with.. convenience helpers, for building the Request in pipeline style.

command : TerminusDb.Session.Session -> Request msg -> Platform.Cmd.Cmd msg

AddUser query command builder, using the provided session for auth token, connection parameters and schema context.


type alias Request msg =
{ message : Result TerminusDb.Woql.Error Basics.Bool -> msg
, name : String
, password : String
, comment : String 
}

Represents an AddUser request.

request : (Result TerminusDb.Woql.Error Basics.Bool -> msg) -> { name : String, password : String } -> Request msg

Request builder with defaults.

withDescription : String -> Request msg -> Request msg

Helper for adding a description to a AddUser query.