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
- [Regression] Appwrite 25.1.0 returns Inv...
I've already opened an issue on GitHub, but somewhat it doesn't seem like GitHub is monitored very closely, so I'm leaving a bug report here on Discord as well....
- Helping in unblock my account
I deleted my Appwrite Cloud account that was linked via GitHub. Now I activated my GitHub Student Pack and want to sign up again using the same GitHub account, ...
- Not allowed permission to upsert a prese...
```js const presenceID = ID.unique(); setPID(presenceID); const presence = await presences.upsert({ presenceId: presenceID, status: "online"...