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
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...
- Project Paused Despite Daily Active Usag...
I noticed that my project was automatically **paused**, even though it is actively being used. The project is an **attendance application** that is used daily b...
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...