FirestoreSettings interface Stay organized with collections Save and categorize content based on your preferences.
Settings to pass to the Firestore constructor.
Signature:
exportinterfaceFirestoreSettingsProperties
| Property | Type | Description |
|---|---|---|
| preferRest | boolean | Use HTTP/1.1 REST transport where possible.preferRest will force the use of HTTP/1.1 REST transport until a method that requires gRPC is called. When a method requires gRPC, this Firestore client will load dependent gRPC libraries and then use gRPC transport for all communication from that point forward. Currently the only operation that requires gRPC is creating a snapshot listener usingonSnapshot(). |
FirestoreSettings.preferRest
Use HTTP/1.1 REST transport where possible.
preferRest will force the use of HTTP/1.1 REST transport until a method that requires gRPC is called. When a method requires gRPC, this Firestore client will load dependent gRPC libraries and then use gRPC transport for all communication from that point forward. Currently the only operation that requires gRPC is creating a snapshot listener usingonSnapshot().
Signature:
preferRest?:boolean;Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-12-15 UTC.