Open aexvir opened 3 weeks ago
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
👋🏻 hey there I'm trying to use the firebase sdk for my app but I'm not using the default
(default)
firestore db instance, which seems to be the only supported option by this sdkthis mr introduces a new option,
firestoreID
configurable like the others, via json or via explicit values in theConfig
struct, and passes this value to theNewClientWithDatabase
firestore constructorif no value is supplied, the default db is still targeted, so this shouldn't incur any breaking change to existing users, moreover, there's no hardcoded values, I'm using the public variable exposed by the firestore package
I've also updated the tests to not only verify that the constructor succeeds, but also that the correct database is being used when e.g. building document refs