Construct WOQL requests and read out responses using this module.
Represents a WOQL request with or without provided commit metadata.
request : Request -> Json.Encode.Value
Encodes a WOQL request with provided query.
{ author : String
, message : String
}
Represents meta information sent with a commit.
commitInfo : CommitInfo -> Json.Encode.Value
CommitInfo encoder.
{ success : Basics.Bool
, variables : List String
, bindings : Bindings
, inserts : Basics.Int
, deletes : Basics.Int
, retries : Basics.Int
}
Represents a WOQL response record.
response : TerminusDb.Schema.Prefix.Context -> Json.Decode.Decoder Response
WOQL Response decoder.
success : TerminusDb.Schema.Prefix.Context -> Json.Decode.Decoder Basics.Bool
Decoder for determining whether a response was successful.
Represents the types of errors that can occur in WOQL requests.
List (Dict String String)
Represents bindings of names (dict keys) to query variables (dict values).
Represents the WOQL query language.
Value
Represents the Subject within a triple.
Value
Represents the Predicate within a triple.
Value
Represents the Object within a triple.
Value
Represents the Graph within a quad (triple + graph).
Represents a WOQL query value, a variable, node reference, literal, or translated data type.
List String
Represents a list of WOQL variable names.
expectJson : (Result Error a -> msg) -> Json.Decode.Decoder a -> Http.Expect msg
Helper for building WOQL response expectations and adding error categories for easy handling in applications.