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 2014-2017 MarkLogic Corporation Documentation generated by JSDoc 3.4.3 on 2017-09-25T11:58:56-07:00 using the DocStrap template.