#[CLOSED] Is there a way to access the database by name?

6 messages · Page 1 of 1 (latest)

tawdry oriole
#

Something like:

databases
      .getDocument('maindb', 'users', '932704e53a242ff3c02l')
brave ridge
lavish cave
#

@tawdry oriole as Steven mentioned, you can use the custom ID which was designed exactly for this use case

tawdry oriole
#

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?