Core
Framework v2.x
2

get() #

Gets a document.

Arguments #

Copied to clipboard!
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.