id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
firebase/firestore-query-filter-compound-multi-eq5_15_0.txt
* Google Developer Center * Google Cloud Marketplace (in console)
firebase/queries4_24_0.txt
* Test Lab * App Distribution
firebase/queries4_57_0.txt
* Get Started * Structure Data * Read and Write Data * Work with Lists of Data * Enable Offline Capabilities * Web
firebase/queries4_82_0.txt
* Recognize text * iOS+ * Android
firebase/queries4_25_0.txt
Engage * Analytics
firebase/firestore_2_0.txt
[ ![Firebase](https://www.gstatic.com/devrel- devsite/prod/v66c4dc9b65fea2172a0927d7be81b5b5d946ea60fc02578dd7c264b2c2852152/firebase/images/lockup.svg) ](/) * [ Products ](https://firebase.google.com/products-build) * [ Build ](https://firebase.google.com/products-build) * [ Release & Monitor ](https://fir...
firebase/multiple-range-fields5_37_0.txt
* Web * Sign in with a pre-built UI * Get Started * Manage Users * Password Authentication * Email Link Authentication * Google * Facebook Login * Sign in with Apple * Twitter * GitHub * Microsoft * Yahoo * Phone Number ...
firebase/queries4_16_0.txt
* AI assistance with Gemini in Firebase Build
firebase/firestore-query-filter-compound-multi-eq5_35_0.txt
To authenticate to Firestore, set up Application Default Credentials. For more information, see Set up authentication for a local development environment . $chainedQuery = $citiesRef ->where('state', '=', 'CA') ->where('name', '=', 'San Francisco');
firebase/firestore_3_11.txt
stom-resource) * [ Unity ](/docs/app-check/unity/custom-resource) * [ Verify tokens on the backend ](/docs/app-check/custom-resource-backend) * Extensions * [ Introduction ](/docs/extensions) * [ Use case examples ](/docs/extensions/samples) * Use an extension in your project * [ O...
firebase/queries4_104_0.txt
* Overview * iOS * Android * Manage hosted custom models * Use a custom TensorFlow Lite build
firebase/queries4_34_0.txt
* Introduction * Where do I start? * Users in Firebase Projects * iOS+ * Sign in with a pre-built UI * Get Started * Manage Users * Password Authentication * Email Link Authentication * Google * Facebook Login * Sign in with Apple * Twit...
firebase/queries4_260_0.txt
const capitalNotFalseRes = await citiesRef.where('capital', '!=', false).get(); index.js ##### Go
firebase/queries4_226_0.txt
* ` < ` less than * ` <= ` less than or equal to * ` == ` equal to * ` > ` greater than * ` >= ` greater than or equal to * ` != ` not equal to * ` array-contains ` * ` array-contains-any ` * ` in ` * ` not-in ` Note: For Apple, Android, and Java, the comparison operator is explicitly named ...
firebase/firestore_1_7.txt
* [ Delete Files ](/docs/storage/flutter/delete-files) * [ List Files ](/docs/storage/flutter/list-files) * [ Handle Errors ](/docs/storage/flutter/handle-errors) * Admin * [ Get Started ](/docs/storage/admin/start) * C++ * [ Get Started ](/docs/storage/cpp/start) ...
firebase/firestore-query-filter-compound-multi-eq5_22_1.txt
ng Firestore queries with a filter (async) * Performs a batch update on a Firestore document * Performs a batch update on a Firestore document (async) * Query a collection group using a partitioned query * Query a Firestore collection * Query a Firestore collection (async) * Query a Firestore collecti...
firebase/queries4_425_0.txt
##### Python cities_ref = db.collection("cities") cities_ref.where(filter=FieldFilter("state", ">=", "CA")).where( filter=FieldFilter("population", ">=", 1000000) ) snippets.py
firebase/queries4_377_0.txt
Learn more about the tree-shakeable modular Web API and upgrade from the namespaced API. const q1 = citiesRef.where("state", "==", "CO").where("name", "==", "Denver"); const q2 = citiesRef.where("state", "==", "CA").where("population", "<", 1000000); test.firestore.js
firebase/multiple-range-fields5_114_0.txt
* Trigger background functions * Firebase Alert triggers * Custom event/extension triggers * Blocking Auth triggers * Authentication triggers * Analytics triggers * Cloud Firestore triggers * Realtime Database triggers * Remote Config triggers * Cloud ...
firebase/firestore-data-filter-by-date-android-java9_21_0.txt
Part of Mobile Development and Google Cloud Collectives 1
firebase/queries4_5_0.txt
* Engage * Reference
firebase/queries4_506_0.txt
museums = db.collection_group("landmarks").where( filter=FieldFilter("type", "==", "museum") ) docs = museums.stream() async for doc in docs: print(f"{doc.id} => {doc.to_dict()}") snippets.py ##### C++
firebase/queries4_209_0.txt
##### Objective-C Note: This product is not available on watchOS and App Clip targets.
firebase/multiple-range-fields5_147_0.txt
### Objective-C FIRQuery *query = [[[[self.db collectionWithPath:@"users"] queryWhereField:@"age" isGreaterThan:@35] queryWhereField:@"height" isGreaterThan:@60] queryWhereField:@"height" isLessThan:@70];
firebase/multiple-range-fields5_140_0.txt
* Analytics * Remote Config * A/B Testing * Cloud Messaging * In-App Messaging * Dynamic Links * Google AdMob * Google Ads * App Indexing Firebase is back at Google I/O on May 14! Check out the sessions.
firebase/queries4_50_0.txt
* Back up and restore data * Disaster recovery planning * Schedule backups and restore data * Point-in-time recovery (PITR) overview * Work with point-in-time recovery (PITR)
firebase/queries4_430_0.txt
##### PHP $invalidRangeQuery = $citiesRef ->where('state', '>=', 'CA') ->where('population', '>', 1000000); query_filter_range_invalid.php
firebase/queries4_492_4.txt
project).Wait(); break; case "invalid-range-query": InvalidRangeQuery(project); break; default: Console.Write(Usage); return; } ...
firebase/queries4_514_0.txt
For the web and mobile SDKs, you must also create rules that allow your collection group queries . ## Explain your query performance
firebase/queries4_40_0.txt
* Admin * Introduction * Manage Users * Import Users * Create Custom Tokens * Verify ID Tokens * Manage Multi-factor Users * Manage User Sessions * Manage Session Cookies * Control Access with Custom Claims * Generating Email Action Links ...
firebase/multiple-range-fields5_7_0.txt
* Learn * Events
firebase/queries4_3_0.txt
* Overview * Fundamentals
firebase/queries4_398_0.txt
##### Swift Note: This product is not available on watchOS and App Clip targets.
firebase/queries4_386_0.txt
### Python cities_ref = db.collection("cities") denver_query = cities_ref.where(filter=FieldFilter("state", "==", "CO")).where( filter=FieldFilter("name", "==", "Denver") ) large_us_cities_query = cities_ref.where( filter=FieldFilter("state", "==", "CA") ).where(filt...
firebase/multiple-range-fields5_145_0.txt
### Web version 9 modular const q = query( collection(db, "users"), where('age', '>', 35), where('height', '>', 60), where('height', '<', 70) );
firebase/firestore_3_20.txt
* **Initialize on your own server** To use the Firebase Admin SDK on your own server, use a [ service account ](https://cloud.google.com/compute/docs/authentication) . Go to [ **IAM & admin > Service accounts ** ](https://console.cloud.google.com/iam-admin/serviceaccounts) in the Google Cloud console. Generate ...
firebase/firestore_4_7.txt
Files ](/docs/storage/flutter/upload-files) * [ Download Files ](/docs/storage/flutter/download-files) * [ Use File Metadata ](/docs/storage/flutter/file-metadata) * [ Delete Files ](/docs/storage/flutter/delete-files) * [ List Files ](/docs/storage/flutter/list-files) * [ Handle Erro...
firebase/queries4_157_0.txt
##### C++ CollectionReference cities = db->Collection("cities"); cities.Document("SF").Set({ {"name", FieldValue::String("San Francisco")}, {"state", FieldValue::String("CA")}, {"country", FieldValue::String("USA")}, {"capital", FieldValue::Boolean(false)}, ...
firebase/performance_monitoring_3_1.txt
cs/analytics) * [ Remote Config ](https://firebase.google.com/docs/remote-config) * [ A/B Testing ](https://firebase.google.com/docs/ab-testing) * [ Cloud Messaging ](https://firebase.google.com/docs/cloud-messaging) * [ In-App Messaging ](https://firebase.google.com/docs/in-app-messaging) * [ Dynamic Lin...
firebase/firestore_0_0.txt
[ ![Firebase](https://www.gstatic.com/devrel- devsite/prod/v66c4dc9b65fea2172a0927d7be81b5b5d946ea60fc02578dd7c264b2c2852152/firebase/images/lockup.svg) ](/) * [ Products ](https://firebase.google.com/products-build) * [ Build ](https://firebase.google.com/products-build) * [ Release & Monitor ](https://fir...
firebase/queries4_51_0.txt
* Techniques and best practices * Best practices for Cloud Firestore * Map data with Swift Codable * Understand reads and writes at scale * Understand real-time queries at scale
firebase/firestore-data-filter-by-date-android-java9_18_0.txt
Learn more about Labs # Firestore data filter by date android java [duplicate]
firebase/queries4_175_0.txt
##### Python # Create a reference to the cities collection cities_ref = db.collection("cities") # Create a query against the collection query_ref = cities_ref.where(filter=FieldFilter("state", "==", "CA")) snippets.py
firebase/queries4_223_0.txt
Query capitalQuery = db.Collection("cities").WhereEqualTo("Capital", true); QuerySnapshot capitalQuerySnapshot = await capitalQuery.GetSnapshotAsync(); foreach (DocumentSnapshot documentSnapshot in capitalQuerySnapshot.Documents) { Console.WriteLine("Document data for {0} document:", d...
firebase/queries4_219_0.txt
import ( "context" "fmt" "cloud.google.com/go/firestore" "google.golang.org/api/iterator" ) func multipleDocs(ctx context.Context, client *firestore.Client) error { fmt.Println("All capital cities:") iter := client.Collection("cities").Where("capital", "==",...
firebase/queries4_246_0.txt
state_query = cities_ref.where "state", "=", "CA" population_query = cities_ref.where "population", ">", 1_000_000 name_query = cities_ref.where "name", ">=", "San Francisco" query_data.rb ### Not equal ( ` != ` )
firebase/performance_monitoring_2_6.txt
e, you can measure how long it takes your app to complete a specific task or set of tasks, such as loading a set of images or querying your database. The default metric for a custom code trace is its duration, but you can also add custom metrics, such as cache hits and memory warnings. In your code, you define the beg...
firebase/queries4_492_1.txt
apshot querySnapshot = await query.GetSnapshotAsync(); foreach (DocumentSnapshot documentSnapshot in querySnapshot.Documents) { Console.WriteLine("Document {0} returned by query State=CA", documentSnapshot.Id); } } private ...
firebase/multiple-range-fields5_95_0.txt
* Label images * Overview * iOS * Android
firebase/firestore-data-filter-by-date-android-java9_64_0.txt
lang-java ##### Stack Overflow
firebase/multiple-range-fields5_100_0.txt
* Identify the language of text * Overview * iOS * Android
firebase/queries4_283_0.txt
##### Node.js const westCoastCities = citiesRef.where('regions', 'array-contains', 'west_coast').get(); index.js
firebase/queries4_130_0.txt
* Verify tokens on the backend * Extensions
firebase/multiple-range-fields5_61_0.txt
* Get Started * Structure Data * Save Data * Retrieve Data * Authenticate REST Requests * C++
firebase/multiple-range-fields5_112_0.txt
* Manage live & preview channels, releases, and versions * Monitor web request data with Cloud Logging * Usage, quotas, and pricing * Deploy using the REST API * Cloud Functions
firebase/queries4_311_0.txt
Use the ` not-in ` operator to combine up to 10 not equal ( ` != ` ) clauses on the same field with a logical ` AND ` . A ` not-in ` query returns documents where the given field exists, is not ` null ` , and does not match any of the comparison values. For example: ### Web modular API
firebase/queries4_512_0.txt
Query museums = db.CollectionGroup("landmarks").WhereEqualTo("Type", "museum"); QuerySnapshot querySnapshot = await museums.GetSnapshotAsync(); foreach (DocumentSnapshot document in querySnapshot.Documents) { Console.WriteLine($"{document.Reference.Path}: {document.GetValue<string>("Na...
firebase/queries4_458_0.txt
### Kotlin+KTX val query = collection.where(Filter.and( Filter.equalTo("state", "CA"), Filter.or( Filter.equalTo("capital", true), Filter.greaterThanOrEqualTo("population", 1000000) ) )) DocSnippets.kt
firebase/multiple-range-fields5_49_0.txt
* Usage, limits, and pricing * Usage and limits * Monitor usage * Explain query performance * Query Explain report reference * Understand Cloud Firestore billing * Example Cloud Firestore costs * Understand storage size calculations
firebase/multiple-range-fields5_59_0.txt
* Get Started * Structure Data * Read and Write Data * Work with Lists of Data * Enable Offline Capabilities * Admin
firebase/queries4_452_0.txt
Cloud Firestore uses your composite indexes to serve ` OR ` queries. If your indexes do not support the query, Cloud Firestore suggests additional indexes for your database . You can combine ` OR ` queries with compound queries to filter on combinations of ` OR ` and ` AND ` operations. For example:
firebase/multiple-range-fields5_68_0.txt
* Get Started * Create a Reference * Upload Files * Download Files * Use File Metadata * Delete Files * List Files * Handle Errors * Web
firebase/queries4_253_0.txt
query = [citiesRef queryWhereField:@"capital" isNotEqualTo:@NO]; ViewController.m ### Kotlin+KTX
firebase/queries4_510_0.txt
$museums = $db->collectionGroup('landmarks')->where('type', '==', 'museum'); foreach ($museums->documents() as $document) { printf('%s => %s' . PHP_EOL, $document->id(), $document->data()['name']); } query_collection_group_filter_eq.php ##### Unity
firebase/multiple-range-fields5_161_0.txt
To minimize the number of documents that Cloud Firestore scans and returns over the network, you should always order fields in the decreasing order of query constraint selectivity. If the result set is not in the required order and the result set is expected to be small, you can implement client-side logic to reorder i...
firebase/queries4_337_0.txt
Note: This product is not available on watchOS and App Clip targets. FIRCollectionReference *citiesRef = [self.db collectionWithPath:@"cities"]; [citiesRef queryWhereField:@"regions" arrayContainsAny:@[@"west_coast", @"east_coast"]]; ViewController.m
firebase/queries4_424_0.txt
##### Java Query invalidRangeQuery = cities.whereGreaterThanOrEqualTo("state", "CA").whereGreaterThan("population", 100000); QueryDataSnippets.java
firebase/queries4_186_0.txt
### Web namespaced API Learn more about the tree-shakeable modular Web API and upgrade from the namespaced API.
firebase/queries4_41_0.txt
* Customize the Email Action Handler * Extend with Cloud Functions * Extend with blocking functions * Email Custom Domains * Case Studies * Usage Limits * Cloud Firestore
firebase/firestore_2_4.txt
t) * [ Manage data retention with time-to-live policies ](/docs/firestore/ttl) * [ Process data in bulk with Dataflow ](/docs/firestore/dataflow-connector) * [ Move data between projects ](/docs/firestore/manage-data/move-data) * Read data * [ Get data ](/docs/firestore/query-data/get...
firebase/queries4_117_0.txt
* Monitor functions * Write and view logs * Report errors
firebase/multiple-range-fields5_148_0.txt
### Java Android Query query = db.collection("users") .whereGreaterThan("age", 35) .whereGreaterThan("height", 60) .whereLessThan("height", 70);
firebase/firestore-data-filter-by-date-android-java9_60_0.txt
How can I create a memory leak in Java? 3550
firebase/queries4_148_0.txt
##### Swift Note: This product is not available on watchOS and App Clip targets.
firebase/multiple-range-fields5_89_0.txt
* Prepare for Production * Protect your Cloud credentials
firebase/queries4_227_0.txt
For example: ### Web modular API
firebase/queries4_26_0.txt
* Remote Config * A/B Testing
firebase/queries4_124_0.txt
* Introduction * Get started * Default providers
firebase/queries4_153_0.txt
### Dart final cities = db.collection("cities"); final data1 = <String, dynamic>{ "name": "San Francisco", "state": "CA", "country": "USA", "capital": false, "population": 860000, "regions": ["west_coast", "norcal"] }; cities.doc("SF").set(data1); ...
firebase/queries4_383_0.txt
### Dart final citiesRef = db.collection("cities"); citiesRef .where("state", isEqualTo: "CO") .where("name", isEqualTo: "Denver"); citiesRef .where("state", isEqualTo: "CA") .where("population", isLessThan: 1000000); firestore.dart
firebase/multiple-range-fields5_134_0.txt
* Firestore Bundle Builder * Get Started * Reference
firebase/firestore-data-filter-by-date-android-java9_9_0.txt
6. Companies 7. Labs
firebase/firestore-data-filter-by-date-android-java9_19_0.txt
Ask Question Asked 2 years, 4 months ago
firebase/queries4_275_0.txt
Note: This product is not available on watchOS and App Clip targets. [citiesRef queryWhereField:@"state" arrayContains:@"west_coast"]; ViewController.m
firebase/queries4_476_0.txt
### Web namespaced API Learn more about the tree-shakeable modular Web API and upgrade from the namespaced API.
firebase/queries4_243_0.txt
$stateQuery = $citiesRef->where('state', '=', 'CA'); $populationQuery = $citiesRef->where('population', '>', 1000000); $nameQuery = $citiesRef->where('name', '>=', 'San Francisco'); query_filter_single_examples.php ##### Unity
firebase/queries4_436_0.txt
### Web namespaced API Not available.
firebase/queries4_77_0.txt
* Deploy & manage custom models * Migrate from the legacy API * iOS+ * Android
firebase/firestore_2_11.txt
stom-resource) * [ Unity ](/docs/app-check/unity/custom-resource) * [ Verify tokens on the backend ](/docs/app-check/custom-resource-backend) * Extensions * [ Introduction ](/docs/extensions) * [ Use case examples ](/docs/extensions/samples) * Use an extension in your project * [ O...
firebase/multiple-range-fields5_8_0.txt
* Stories Support
firebase/multiple-range-fields5_1_0.txt
* Build * Release & Monitor
firebase/firestore_3_13.txt
**Warning:** After you set your project's default GCP resource location, you cannot change it. 5. Click **Done** . **Cloud Firestore and App Engine:** You can't use both Cloud Firestore and Cloud Datastore in the same project, which might affect apps using App Engine. Try using Cloud Firestore with a different pro...
firebase/queries4_278_0.txt
### Dart final citiesRef = db.collection("cities"); final westCoastcities = citiesRef.where("regions", arrayContains: "west_coast"); firestore.dart
firebase/queries4_206_0.txt
### Web namespaced API Learn more about the tree-shakeable modular Web API and upgrade from the namespaced API.
firebase/queries4_97_0.txt
* Recognize landmarks * Overview * iOS * Android
firebase/queries4_423_0.txt
### Dart final citiesRef = db.collection("cities"); citiesRef .where("state", isGreaterThanOrEqualTo: "CA") .where("population", isGreaterThan: 1000000); firestore.dart
firebase/queries4_529_0.txt
When you order a query by a given field, the query can return only the documents where the order-by field exists. For example, the following query would not return any documents where the ` population ` field is not set, even if they otherwise meet the query filters.
firebase/multiple-range-fields5_141_0.txt
* Firebase * Documentation * Firestore * Build Send feedback
firebase/queries4_179_0.txt
##### Go query := client.Collection("cities").Where("state", "==", "CA") query.go
firebase/multiple-range-fields5_160_0.txt
#### Order fields in decreasing order of query constraint selectivity To ensure that Cloud Firestore selects the optimal index for your query, specify an ` orderBy() ` clause that orders fields in decreasing order of query constraint selectivity. Higher selectivity matches a smaller subset of documents, while lower s...