Skip to content

Appwrite CLI #11424

@Amrhub

Description

@Amrhub

👟 Reproduction steps

When you use appwrite generate
It creates generated/appwrite/types.ts

for example in equals K extends QueryableKeys<InspectionsPaymentTransfers>
error TS2536: Type 'K' cannot be used to index type InspectionsPaymentTransfers.

In order to get around that I added K extends QueryableKeys<InspectionsPaymentTransfers> & keyof InspectionsPaymentTransfers it defies the feature's purpose as it will show $databaseId in .equals queries

I think you can replicate with any schema as it happened with all of my tables.

👍 Expected behavior

appwrite generate shouldn't throw any typescript error that blocks deployment pipeline

👎 Actual Behavior

It throws

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

MacOS

🧱 Your Environment

Typescript version 5.9.3

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    product / databasesFixes and upgrades for the Appwrite Database.product / functionsFixes and upgrades for the Appwrite Functions.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions