The parameters to customize the query. This includes:
doctype: The document type to retrieve.name: Optional name of the specific document to retrieve.filters: Optional filter conditions to apply to the query.parent: Optional parent document identifier.A promise that resolves to the document of type T. The exact type of T depends
on the structure of the document and any specified parameters.
Retrieves a single document from the server based on the provided parameters.
This function performs an asynchronous request to the server to get a document of the specified
doctype. It supports parameters for specifying the document's name, applying filters, and including a parent document.Example
Example
Example
Example
Throws
Throws an error if the request fails or if there is an issue processing the parameters.