Did you know ... | Search Documentation: |
The JavaScript class Query |
The method Prolog.query()
returns an instance of the JavaScript class Query
that may
be used to explore the solutions of the query. The Query
class implements the JavaScript iterator protocol.
done
and value
. If exception
handling is enabled it returns an object
{done
:true
, error
:true
,
message
:String}..value
of the object returned by .next()
on success and the
complete object on failure or error. In addition, on a logical result
(no error), a field
success
is added with a boolean value. Thus, the return
value may contain these keys:
success
key is set to true
.success
:false}error
:true, message
:String}