The parameters to customize the query. This includes:
doctype: The document type to retrieve.fields: Optional list of fields to include in the result.filters: Optional filters to apply to the query.group_by: Optional field by which to group results.order_by: Optional sorting criteria.limit_start: Optional starting index for pagination.limit_page_length: Optional number of results per page.parent: Optional parent document identifier.debug: Optional flag to enable debugging.as_dict: Optional flag to specify the format of the results.or_filters: Optional additional filter conditions with OR logic.A promise that resolves to an array of documents of type T. The exact type of T
depends on the structure of the documents and the as_dict parameter.
Fetches a list of documents from the server based on the provided parameters.
This function performs an asynchronous request to the server to retrieve a list of documents of the specified
doctype. It supports various parameters to customize the query, such as selecting specific fields, applying filters, sorting, grouping, and pagination.Example
Example
Example
Example
Example
Example
Example
Example
Throws
Throws an error if the request fails or if there is an issue processing the parameters.