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
- general_unauthorized_scope
localhost oauth not working. general_unauthorized_scope error showing. { "message": "User (role: guests) missing scopes ([\"account\"])", "code": 401, ...
- Anyone manage to get a slack-bot working...
I'm trying to setup a bot the send and retrieve slack messages to a chat in my site. I've failed with SSE and appwrite functions soo far... i'll trying polling ...
- [Sites] Deployment finished but site is ...
The deployment finished and is active but the site shows timeout error.