Core
Framework v2.x
2

get() #

Gets a document.

Arguments #

get(id: string): Promise<any>;

ArgumentsTypeDescription
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.