get()
#
Gets a document.
Arguments #
get(id: string): Promise<any>;
Arguments | Type | Description |
---|---|---|
id | string | Document unique identifier |
Return #
The get
function returns a promise, resolving to the retrieved document's content.
If an ObjectConstructor
argument was provided to the repository constructor, then the content is returned as an instance of that class instead of a raw object.
Edit this page on Github(opens new window)