code | type | title | description |
---|---|---|---|
true |
page |
GetAsync |
Gets a document from kuzzle. |
Gets a document.
public async Task<JObject> GetAsync(
string index,
string collection,
string id);
Argument | Type | Description |
---|---|---|
index |
string |
Index name |
collection |
string |
Collection name |
id |
string |
Document ID |
A JObject representing the document content.
Property | Type | Description |
---|---|---|
_id |
string |
Document ID |
_source |
JObject |
Document content |
Throws a KuzzleException
if there is an error. See how to handle errors.
<<< ./snippets/get.cs