def get_documents_by_type(self, doc_type: str, graph_type: str='instance', skip: int=0, count: Optional[int]=None, as_list: bool=False, get_data_version=False, **kwargs) -> Union[(Iterable, list)]:
    'Retrieves the documents by type\n\n        Parameters\n        ----------\n        doc_type : str\n            Specific type for the docuemnts that is retriving\n        graph_type : str, optional\n            Graph type, either "instance" or "schema".\n        skip: int\n            The starting posiion of the returning results, default to be 0\n        count: int or None\n            The maximum number of returned result, if None (default) it will return all of the avalible result.\n        as_list: bool\n            If the result returned as list rather than an iterator.\n        get_data_version: bool\n            If the version of the document(s) should be obtained. If True, the method return the result and the version as a tuple.\n        kwargs:\n            Additional boolean flags for retriving. Currently avaliable: "prefixed", "unfold"\n\n        Raises\n        ------\n        InterfaceError\n            if the client does not connect to a database\n\n        Returns\n        -------\n        iterable\n            Stream of dictionaries\n        '
    self._validate_graph_type(graph_type)
    add_args = ['prefixed', 'unfold']
    self._check_connection()
    payload = {'type': doc_type, 'graph_type': graph_type}
    payload['skip'] = skip
    if (count is not None):
        payload['count'] = count
    for the_arg in add_args:
        if (the_arg in kwargs):
            payload[the_arg] = kwargs[the_arg]
    result = requests.get(self._documents_url(), headers={'user-agent': f'terminusdb-client-python/{__version__}'}, params=payload, auth=self._auth())
    if get_data_version:
        (result, version) = _finish_response(result, get_data_version)
        return_obj = _result2stream(result)
        if as_list:
            return (list(return_obj), version)
        else:
            return (return_obj, version)
    return_obj = _result2stream(_finish_response(result))
    if as_list:
        return list(return_obj)
    else:
        return return_obj
Retrieves the documents by type

Parameters
----------
doc_type : str
    Specific type for the docuemnts that is retriving
graph_type : str, optional
    Graph type, either "instance" or "schema".
skip: int
    The starting posiion of the returning results, default to be 0
count: int or None
    The maximum number of returned result, if None (default) it will return all of the avalible result.
as_list: bool
    If the result returned as list rather than an iterator.
get_data_version: bool
    If the version of the document(s) should be obtained. If True, the method return the result and the version as a tuple.
kwargs:
    Additional boolean flags for retriving. Currently avaliable: "prefixed", "unfold"

Raises
------
InterfaceError
    if the client does not connect to a database

Returns
-------
iterable
    Stream of dictionaries
def get_documents_by_type(self, doc_type: str, graph_type: str='instance', skip: int=0, count: Optional[int]=None, as_list: bool=False, get_data_version=False, **kwargs) -> Union[(Iterable, list)]:
    'Retrieves the documents by type\n\n        Parameters\n        ----------\n        doc_type : str\n            Specific type for the docuemnts that is retriving\n        graph_type : str, optional\n            Graph type, either "instance" or "schema".\n        skip: int\n            The starting posiion of the returning results, default to be 0\n        count: int or None\n            The maximum number of returned result, if None (default) it will return all of the avalible result.\n        as_list: bool\n            If the result returned as list rather than an iterator.\n        get_data_version: bool\n            If the version of the document(s) should be obtained. If True, the method return the result and the version as a tuple.\n        kwargs:\n            Additional boolean flags for retriving. Currently avaliable: "prefixed", "unfold"\n\n        Raises\n        ------\n        InterfaceError\n            if the client does not connect to a database\n\n        Returns\n        -------\n        iterable\n            Stream of dictionaries\n        '
    self._validate_graph_type(graph_type)
    add_args = ['prefixed', 'unfold']
    self._check_connection()
    payload = {'type': doc_type, 'graph_type': graph_type}
    payload['skip'] = skip
    if (count is not None):
        payload['count'] = count
    for the_arg in add_args:
        if (the_arg in kwargs):
            payload[the_arg] = kwargs[the_arg]
    result = requests.get(self._documents_url(), headers={'user-agent': f'terminusdb-client-python/{__version__}'}, params=payload, auth=self._auth())
    if get_data_version:
        (result, version) = _finish_response(result, get_data_version)
        return_obj = _result2stream(result)
        if as_list:
            return (list(return_obj), version)
        else:
            return (return_obj, version)
    return_obj = _result2stream(_finish_response(result))
    if as_list:
        return list(return_obj)
    else:
        return return_obj