Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1007 Bytes

index.md

File metadata and controls

45 lines (31 loc) · 1007 Bytes
code type title description
true
page
GetAsync
Gets a document from kuzzle.

GetAsync

Gets a document.

Arguments

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

Return

A JObject representing the document content.

Property Type Description
_id
string
Document ID
_source
JObject
Document content

Exceptions

Throws a KuzzleException if there is an error. See how to handle errors.

Usage

<<< ./snippets/get.cs