FirestoreSettings interface
Stay organized with collections
Save and categorize content based on your preferences.
Settings to pass to the Firestore constructor.
Signature:
export interface FirestoreSettings
Properties
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 using onSnapshot() . |
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 using onSnapshot()
.
Signature:
preferRest?: boolean;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-12-15 UTC.
[null,null,["Last updated 2022-12-15 UTC."],[],[],null,["Settings to pass to the Firestore constructor.\n\n**Signature:** \n\n export interface FirestoreSettings \n\nProperties\n\nFirestoreSettings.preferRest\n\nUse HTTP/1.1 REST transport where possible.\n\n`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 using `onSnapshot()`.\n\n**Signature:** \n\n preferRest?: boolean;"]]