Namespace: ResultProvider

ResultProvider

An object offering the alternative of a ResultProvider#result function or a ResultProvider#stream function for receiving the results

Methods


result(success, failure) → {object}

Accepts success and/or failure callbacks and returns a Promises object for chaining actions with then() functions.
Parameters:
Name Type Argument Description
success function <optional>
a callback invoked when the request succeeds
failure function <optional>
a callback invoked when the request fails
Since:
  • 1.0
Returns:
a Promises object
Type
object

stream() → {object}

Returns a ReadableStream object in object mode for receiving results as complete objects.
Since:
  • 1.0
Returns:
a ReadableStream object
Type
object
Copyright (c) 2020 MarkLogic Corporation Documentation generated by JSDoc 3.6.4 on 2020-08-04T23:55:51-07:00 using the DocStrap template.