Skip to content

Reverse link results are not typed #1524

@kostasb

Description

@kostasb

Reported on client version: 0.29.5

When aliasing a reverse link result with as, the alias is not typed in the returned object.

const record = await xata.db.ShoppingCarts.select([{
    name: "<-ShoppingCartLineItems.shoppingCart",
    columns: ["productId", "quantity", "type"],
    as: "lineItems"
}]).getFirst();

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions