Something like:
databases
.getDocument('maindb', 'users', '932704e53a242ff3c02l')
No...you could have used a custom id for the database id
@leonardorick as Steven mentioned, you can use the custom ID which was designed exactly for this use case
Yeah, but since I'm using multiple environments I wonder if that was possible (or something like that) to simplify things. But ok, thanks!
[ANSWERED] Is there a way to access the database by name?
[CLOSED] Is there a way to access the database by name?
Recommended threads
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...