Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Latest commit

 

History

History
50 lines (35 loc) · 1.11 KB

File metadata and controls

50 lines (35 loc) · 1.11 KB
code type title description
true
page
mgetDocument
Collection:mgetDocument

mGetDocument

Get multiple Documents according to the input document IDs.


mGetDocument(documentIds, [options], callback)

Arguments Type Description
documentIds String[] Array of IDs of documents to retrieve
options JSON Object Optional parameters
callback function Callback handling the response

Options

Option Type Description Default
queuable boolean Make this request queuable or not true

Callback Response

Returns a JSON object containing the raw Kuzzle response.

Usage

<<< ./snippets/mget-document-1.php

Callback response:

{
  "hits": [
    { "_id": "doc1", "first": "document" },
    { "_id": "doc2", "second": "document" }
  ],
  "total": 2
}