![]() graphql_read_document (+Source, -Document, +Options) is semidet True when Document is a term representing the abstract syntax tree Same format as used by graphql_read_document/3. Result is a term representing the given GraphQL document in the Variable_names(+VarNames) in graphql_read_document/3. Of a variable that is an element of Args. The special lexical construct "" where VarName is the name Prolog variables can be incorporated in the quasi-quotation using graphql (+Content, +Args, -VariableNames, -Result) is det Quasi-quotation syntax for embedding GraphQL in Prolog text. Hook to set authorization token for the GraphQL endpoint at URI. graphql_auth_token_hook (+URI, -Token) is nondet Multifile, dynamic hook. JSON format for server-side interpolation.įor more information about GraphQL variables, see ![]() Variables is sent to the remote to the GraphQL endpoint in Variables that occur in Document as $key. variables (+Variables) Variables is a dict with keys corresponding to GraphQL Options is a list whose elemenets are one of the following: token (+Token) Token is string that will be used as an OAuth2.0 token. ?- sourcehut_repository_description("eshel", "", Desc).ĭesc = "SWI-Prolog package implementing a SourceHut GraphQL API client.". Sourcehut_repository_description(Owner, Repo, Desc) :-ĭesc = Dict.get(data/user/repository/description). Used to expose a simple GraphQL interface to Prolog: The following example shows how graphql_execute_document/4 can be Representing the JSON formatted response received from the server. The GraphQL document, as obtained from e.g. ![]() ![]() graphql_execute_document (+URI, +Document, -Result, +Options) is det Send GraphQL document Document to be executed by the GraphQLĭocument is a Prolog term representing the abstract syntax tree of This module provides predicates for working with GraphQL, a query ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |