Skip to content

Generic Type on Raw Query response #764

@vitoladev

Description

@vitoladev

It would be great to have a generic type on database.query() method, passing a T generic to the ArrayCursor class.

Example:

 query<T = any>(query: AqlQuery, options?: QueryOptions): Promise<ArrayCursor<T>>;

I will send a PR with this feature, typescript types will be useful on raw queries, because it currently returns any type on every raw query.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestRequest for new functionality to be added to the driver.fixedIssue has been resolved but remains open due to a pending release.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions