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 4.0.0 on 2024-08-19T23:06:48-07:00 using the DocStrap template.