
Hello,
we are having multiple databases and would like to use the cli to generate the types using (appwrite types --language ts), the issue is that the appwrite.d.ts only generates the names of Collection without the Database name as prefix.
For example, databases
MyPrimaryDatabase
Users
first_name: string
MySecondaryDatabase
Users
last_name: string
❌ The CLI will generate duplicate types like this:
export type Users = Models.Document & {
first_name: string;
}
export type Users = Models.Document & {
last_name: string;
}
✅ It would be better to use the database name as prefix like this:
export interface MyPrimaryDatabase{
Users: Models.Document & {
first_name: string;
},
}
export interface MySecondaryDatabase{
Users: Models.Document & {
last_name: string;
},
}
Thank you

Duplicate name types with multiple databases
Recommended threads
- How to delete secured files from bucket?
When deleting a user I want to delete all their data including files. How can I delete secured files in cloud/nodejs?
- How to get OTP code in SMTP email temp...
I don't know how to get the OTP code to show in my custom email template for email authentication using OTP. I have email authentication set up for iOS app, an...
- Expo-web session issue
In web I created a session using oauth. I run the app logged in but closed the terminal and ran again opened the app(I have now 2 running app in different...
