
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 much should I wait for Appwrite Func...
Here's my situation: 1. Deploy the function first 2. Add API key(other service) in env 3. Redeploy 4. The function still cannot recognize my API key. I think i...
- I can't add relationship attributes on m...
How can I make it work in selfhosted Appwrite?
- CORS error using Appwrite DNS
Hello š , we are using the DNS on organization domains `rostlino.cz` using nameservers `NS` ``` NAME: rostlino.cz TYPE: NS VALUE: ns1.appwrite.zone TTL: 3360 ...
