0

I've two apps, same logic, but differents database.

On app 1, I use database-1, for app 2, I use database-2.

On my first app, I've deployed a onWrite functions, that's works well. The function is trigged and everything works well.

Now I want to deploy the same function, on the same project but with different database, it's that possible?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Diego Desenvolvedor
  • 378
  • 1
  • 6
  • 22

1 Answers1

1
functions.database.instance('database-2').ref('/foo/bar')

According to docs, you can specify a Realtime Database instance with instance('INSTANCE_NAME').

Peter Obiechina
  • 2,686
  • 1
  • 7
  • 14