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
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...
- How to properly implement custom domain?...
- Site deployment does not work.
I can change a file, deploy, change does not take effect. Delete file in repo, push changes,deploy. Old file remains undeleted Duplicate file, rename it, push,...