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
- Problem with Google Workspace at DNS Rec...
Hello, I bought a domain at Namecheap, and Google Workspace used to work there, but now that I switched from Custom DNS to Appwrite's nameservers, it doesn't w...
- Function running for more than 2 hours i...
This is my projectID: 669fe01b003800dd0503 Cloud functionID is 696ea05400147eb8eb3b I hope this doesn't count against my GB-hours?
- change role of a team member in Appwrite
It's not possible to add/change roles of a team meber in Appwrite Frontend. When you click on a member of a team you get forwarded to the configuration page of ...