id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
firebase/multiple-range-fields5_173_0.txt | * Contact support
* Stack Overflow
* Slack community
* Google group
* Release notes
* FAQs
* Android
* Chrome
* Firebase
* Google Cloud Platform
* All products | |
firebase/multiple-range-fields5_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_465_0.txt | ##### Node.js
const bigCitiesInCalifornia = await citiesRef
.where('state', '==', 'CA')
.where(
Filter.or(
Filter.where('capital', '==', true),
Filter.where('population', '>=', 1000000)
)
)
.get();
index.js | |
firebase/queries4_261_0.txt |
// Snippet not yet available
##### PHP | |
firebase/queries4_232_0.txt | ##### Objective-C
Note: This product is not available on watchOS and App Clip targets. | |
firebase/firestore-data-filter-by-date-android-java9_56_0.txt | How do I read / convert an InputStream into a String in Java?
4349 | |
firebase/firestore_0_3.txt | b-auth)
* [ Facebook Login ](/docs/auth/cpp/facebook-login)
* [ Sign in with Apple ](/docs/auth/cpp/apple)
* [ Twitter Login ](/docs/auth/cpp/twitter-login)
* [ Microsoft ](/docs/auth/cpp/microsoft-oauth)
* [ Yahoo ](/docs/auth/cpp/yahoo-oauth)
* [ Phone Number ](/docs/auth/cpp... | |
firebase/queries4_48_0.txt | * Integrate with BigQuery
* Implement an AI-driven chatbot
* Enrich handling of text
* Enhance value of media
* Solutions using guided custom implementations
* Firestore Lite Web SDK
* Write-time aggregations
* Distributed counters
* Full-text search
... | |
firebase/queries4_422_0.txt | ### Java
citiesRef.whereGreaterThanOrEqualTo("state", "CA").whereGreaterThan("population", 100000);
DocSnippets.java | |
firebase/queries4_492_0.txt |
// Copyright(c) 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unles... | |
firebase/queries4_388_0.txt | ##### Node.js
citiesRef.where('state', '==', 'CO').where('name', '==', 'Denver');
citiesRef.where('state', '==', 'CA').where('population', '<', 1000000);
index.js | |
firebase/queries4_324_0.txt |
const notUsaOrJapan = await citiesRef.where('country', 'not-in', ['USA', 'Japan']).get();
index.js
##### Go | |
firebase/firestore-data-filter-by-date-android-java9_41_0.txt | Follow
answered Dec 26, 2021 at 22:24 | |
firebase/multiple-range-fields5_18_0.txt | * Realtime Database
* Firestore | |
firebase/firestore_1_8.txt | ](/docs/ml/ios/ab-test-models)
* [ Android ](/docs/ml/android/ab-test-models)
* Prepare for Production
* Protect your Cloud credentials
* [ iOS+ ](/docs/ml/ios/secure-api-key)
* [ Android ](/docs/ml/android/secure-api-key)
* Legacy Documentation
* ML Kit for Firebase
... | |
firebase/queries4_125_0.txt | * iOS+ (DeviceCheck)
* iOS+ (App Attest)
* Android (Play Integrity)
* Android (SafetyNet, deprecated)
* Web (reCAPTCHA Enterprise)
* Web (reCAPTCHA v3)
* Flutter
* C++
* Unity
* Custom providers | |
firebase/multiple-range-fields5_113_0.txt | * Introduction
* 1st and 2nd gen version comparison
* Explore use cases
* Get started
* Upgrade to 2nd gen
* Call functions directly
* Call functions from your app
* Call functions via HTTP requests
* Enqueue functions with Cloud Tasks
* Run functions on a sched... | |
firebase/multiple-range-fields5_164_0.txt | ### Python
results = db.collection("employees")
.where("salary", ">", 100000)
.order_by("salary")
.stream()
// Order results by `experience`
| |
firebase/queries4_317_0.txt |
[citiesRef queryWhereField:@"country" notIn:@[@"USA", @"Japan"]];
ViewController.m
### Kotlin+KTX | |
firebase/queries4_296_0.txt | Note: This product is not available on watchOS and App Clip targets.
FIRCollectionReference *citiesRef = [self.db collectionWithPath:@"cities"];
[citiesRef queryWhereField:@"country" in:@[@"USA", @"Japan"]];
ViewController.m | |
firebase/queries4_99_0.txt | * iOS
* Android
* Migrate datasets
* Natural Language | |
firebase/firestore-data-filter-by-date-android-java9_37_0.txt | 1
Since you mentioned that your data is in the Firestore database, you must be
able to render data via queries. If your document has a field "created_on"
which is the date field, then you can filter using it. You can do something
like this: | |
firebase/performance_monitoring_1_2.txt | * [ Get started ](/docs/test-lab/ios/get-started)
* [ Run a Robo test ](/docs/test-lab/ios/robo-ux-test)
* [ Run a Robo script ](/docs/test-lab/ios/run-robo-scripts)
* [ Run a Game Loop test ](/docs/test-lab/ios/run-game-loop-test)
* [ Run an XCTest ](/docs/test-lab/ios/run-xctest)
* ... | |
firebase/multiple-range-fields5_87_0.txt | * iOS+
* Android
* Migrate datasets
* Advanced Topics | |
firebase/queries4_241_0.txt |
const stateQueryRes = await citiesRef.where('state', '==', 'CA').get();
const populationQueryRes = await citiesRef.where('population', '<', 1000000).get();
const nameQueryRes = await citiesRef.where('name', '>=', 'San Francisco').get();
index.js
##### Go | |
firebase/firestore-query-filter-compound-multi-eq5_22_0.txt | * Code samples for all products
* Firestore
* All samples
* Use a custom type on the client for Firestore documents (async)
* Add a Firestore document
* Add a Firestore document (async)
* Add a Firestore document using a custom type
* Add a Firestore document using a custom type (async)
* Add... | |
firebase/firestore_4_9.txt | review, then deploy ](/docs/hosting/test-preview-deploy)
* [ Deploy via GitHub pull requests ](/docs/hosting/github-integration)
* [ Share project resources across multiple sites ](/docs/hosting/multisites)
* [ Connect a custom domain ](/docs/hosting/custom-domain)
* [ Configure hosting behavior ](... | |
firebase/queries4_73_0.txt | * Get Started
* Create a Reference
* Upload Files
* Download Files
* Use File Metadata
* Delete Files
* Handle Errors
* Security & Rules | |
firebase/multiple-range-fields5_79_0.txt | * Overview
* iOS+
* Android
* Label images | |
firebase/firestore-data-filter-by-date-android-java9_13_0.txt | 3. Teams
4. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams | |
firebase/multiple-range-fields5_117_0.txt | * Monitor functions
* Write and view logs
* Report errors | |
firebase/queries4_356_0.txt | ##### Swift
Note: This product is not available on watchOS and App Clip targets. | |
firebase/queries4_141_0.txt | * Firebase
* Documentation
* Firestore
* Build
Send feedback | |
firebase/queries4_171_0.txt | ### Kotlin+KTX
// Create a reference to the cities collection
val citiesRef = db.collection("cities")
// Create a query against the collection.
val query = citiesRef.whereEqualTo("state", "CA")
DocSnippets.kt | |
firebase/queries4_108_0.txt | * Android
* Protect your Cloud credentials | |
firebase/firestore-data-filter-by-date-android-java9_27_0.txt | Improve this question
Follow | |
firebase/queries4_103_0.txt | * Custom Models
* Use a custom model | |
firebase/performance_monitoring_1_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/multiple-range-fields5_132_0.txt | * Trigger Email
* Get started
* Use Handlebars templates
* Manage delivery status | |
firebase/queries4_321_0.txt |
CollectionReference citiesRef = db.collection("cities");
Query query = citiesRef.whereNotIn("country", Arrays.asList("USA", "Japan"));
QueryDataSnippets.java
##### Python | |
firebase/queries4_258_0.txt |
// Snippet not yet available
##### C++ | |
firebase/queries4_215_0.txt |
# Note: Use of CollectionRef stream() is prefered to get()
docs = (
db.collection("cities")
.where(filter=FieldFilter("capital", "==", True))
.stream()
)
for doc in docs:
print(f"{doc.id} => {doc.to_dict()}")
snippets.py
### Python | |
firebase/firestore-data-filter-by-date-android-java9_3_0.txt | * Stack Overflow
help chat | |
firebase/queries4_62_0.txt | * Get Started
* Structure Data
* Save Data
* Retrieve Data
* Unity | |
firebase/multiple-range-fields5_115_0.txt | * Write functions
* Manage deployment and runtime options
* Write functions in TypeScript
* Sync, async, and promises
* Retry asynchronous functions
* Configure your environment
* Organize functions
* Handling dependencies
* Optimizing networking
* Tip... | |
firebase/multiple-range-fields5_21_0.txt | * Security Rules
* App Check | |
firebase/queries4_307_0.txt | ##### Unity
CollectionReference citiesRef = db.Collection("cities");
List countriesList = new List<object>() {"USA", "Japan"};
Query whereInQuery = citiesRef.WhereIn("country", countriesList);
| |
firebase/queries4_428_0.txt | ##### Node.js
citiesRef.where('state', '>=', 'CA').where('population', '>', 1000000);
index.js | |
firebase/queries4_322_0.txt |
// Snippet not yet available
##### C++ | |
firebase/firestore-query-filter-compound-multi-eq5_7_0.txt | * Storage
Cross-product tools | |
firebase/queries4_487_0.txt |
// Get a new write batch
WriteBatch batch = db->batch();
DocumentReference sf_ref = db->Collection("cities").Document("SF");
batch.Set(sf_ref,{{"name", FieldValue::String("Golden Gate Bridge")}, {"type", FieldValue::String("bridge")}});
batch.Set(sf_ref,{{"name", FieldV... | |
firebase/queries4_220_0.txt | ### PHP
For more on installing and creating a Cloud Firestore client, refer to Cloud
Firestore Client Libraries . | |
firebase/queries4_492_3.txt | Snapshot.Id);
}
}
private static async Task CompositeIndexChainedQuery(string project)
{
FirestoreDb db = FirestoreDb.Create(project);
CollectionReference citiesRef = db.Collection("cities");
Query chainedQuery = ci... | |
firebase/queries4_486_0.txt |
cities = db.collection("cities")
sf_landmarks = cities.document("SF").collection("landmarks")
await sf_landmarks.document().set({"name": "Golden Gate Bridge", "type": "bridge"})
await sf_landmarks.document().set({"name": "Legion of Honor", "type": "museum"})
la_landmarks = cities.docu... | |
firebase/performance_monitoring_4_0.txt | [ 
](/)
*
[ Products ](https://firebase.google.com/products-build)
* [ Build ](https://firebase.google.com/products-build)
* [ Release & Monitor ](https://fir... | |
firebase/queries4_384_0.txt | ##### Java
Query chainedQuery1 = cities.whereEqualTo("state", "CO").whereEqualTo("name", "Denver");
QueryDataSnippets.java | |
firebase/firestore_2_1.txt | )
* [ 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 Links ](https:... | |
firebase/queries4_431_0.txt | ##### Unity
Query invalidRangeQuery = citiesRef
.WhereGreaterThanOrEqualTo("State", "CA")
.WhereGreaterThan("Population", 1000000); | |
firebase/queries4_191_0.txt |
val capitalCities = db.collection("cities").whereEqualTo("capital", true)
DocSnippets.kt
### Java | |
firebase/queries4_119_0.txt | * Cloud Functions and Firebase
* Cloud Functions locations
* Quotas and limits
* Security Rules | |
firebase/multiple-range-fields5_28_0.txt | * Dynamic Links
* Google AdMob | |
firebase/queries4_268_0.txt | Note the following limitations for ` != ` queries:
* Only documents where the given field exists can match the query.
* You can't combine ` not-in ` and ` != ` in a compound query.
* In a compound query, range ( ` < ` , ` <= ` , ` > ` , ` >= ` ) and not equals ( ` != ` , ` not-in ` ) comparisons must all filte... | |
firebase/queries4_534_0.txt | ## What's next
* Learn how to order and limit data in query results .
* Save reads when you simply want to count results . | |
firebase/firestore-data-filter-by-date-android-java9_44_0.txt | Not the answer you're looking for? Browse other questions tagged
* java
* android
* firebase
* google-cloud-firestore | |
firebase/queries4_390_0.txt | ##### PHP
$chainedQuery = $citiesRef
->where('state', '=', 'CA')
->where('name', '=', 'San Francisco');
query_filter_compound_multi_eq.php | |
firebase/queries4_485_0.txt |
cities = db.collection("cities")
sf_landmarks = cities.document("SF").collection("landmarks")
sf_landmarks.document().set({"name": "Golden Gate Bridge", "type": "bridge"})
sf_landmarks.document().set({"name": "Legion of Honor", "type": "museum"})
la_landmarks = cities.document("LA").c... | |
firebase/queries4_276_0.txt | ### Kotlin+KTX
val citiesRef = db.collection("cities")
citiesRef.whereArrayContains("regions", "west_coast")
DocSnippets.kt | |
firebase/queries4_244_0.txt |
Query stateQuery = citiesRef.WhereEqualTo("State", "CA");
Query populationQuery = citiesRef.WhereGreaterThan("Population", 1000000);
Query nameQuery = citiesRef.WhereGreaterThanOrEqualTo("Name", "San Francisco");
##### C# | |
firebase/queries4_463_0.txt | ### Python
Snippet not available. | |
firebase/queries4_361_0.txt | ### Dart
final citiesRef = db.collection("cities");
final cities = citiesRef.where("regions", whereIn: [
["west_coast"],
["east_coast"]
]);
firestore.dart | |
firebase/performance_monitoring_1_3.txt | cs/app-distribution/troubleshooting)
* Related products
* [ Analytics ](//firebase.google.com/docs/analytics/)
* [ Remote Config ](//firebase.google.com/docs/remote-config/)
* [ Build ](/products-build)
* [ Release & Monitor ](/products-release)
* [ Engage ](/products-engage)
* [ Overview ](/do... | |
firebase/multiple-range-fields5_78_0.txt | * Use Cloud Vision APIs
* Recognize text | |
firebase/firestore_3_3.txt | auth/cpp/password-auth)
* [ Google ](/docs/auth/cpp/google-signin)
* [ Play Games Sign-in ](/docs/auth/cpp/play-games)
* [ GitHub ](/docs/auth/cpp/github-auth)
* [ Facebook Login ](/docs/auth/cpp/facebook-login)
* [ Sign in with Apple ](/docs/auth/cpp/apple)
* [ Twitter Login ]... | |
firebase/firestore_3_29.txt | base}/documents {
match /users/{uid} {
allow read, write: if request.auth != null && request.auth.uid == uid;
}
}
}
### Locked mode
// Deny read/write access to all users under any conditions
service cloud.firestore {
match /databases/{database}/docume... | |
firebase/queries4_460_0.txt | ### Dart
var query = db.collection("cities")
.where(
Filter.and(
Filter("state", isEqualTo: "CA"),
Filter.or(
Filter("capital", isEqualTo: true),
Filter("population", isGreaterThan: 1000000)
)));
firestore.dart | |
firebase/queries4_352_0.txt | ` array-contains-any ` always filters by the array data type. For example, the
query above would not return a city document where instead of an array, the `
regions ` field is the string ` west_coast ` .
You can use an array value as a comparison value for ` in ` , but unlike `
array-contains-any ` , the clause matche... | |
firebase/queries4_411_0.txt | ##### Unity
Query rangeQuery = citiesRef
.WhereGreaterThanOrEqualTo("State", "CA")
.WhereLessThanOrEqualTo("State", "IN"); | |
firebase/firestore_2_10.txt | rence
* [ Node.js 2nd gen ](/docs/reference/functions/2nd-gen/node/firebase-functions)
* [ Node.js 1st gen ](/docs/reference/functions/firebase-functions)
* [ Node.js Test SDK ](/docs/reference/functions/test/test)
* [ Python ](/docs/reference/functions/2nd-gen/python)
* [ Protocol s... | |
firebase/queries4_538_0.txt | * Blog
* Firebase Summit
* Twitter
* YouTube
* ### Support
* Contact support
* Stack Overflow
* Slack community
* Google group
* Release notes
* FAQs | |
firebase/multiple-range-fields5_168_0.txt | * Queries with range or inequality filters on document fields and only equality constraints on the document key ` (__name__) ` are not supported.
* Cloud Firestore limits the number of range or inequality fields to 10. This is to prevent queries from becoming too expensive to run.
## What's Next | |
firebase/multiple-range-fields5_128_0.txt | * Standard Firebase services
* Cloud Functions for Firebase
* Enable enforcement
* Standard Firebase services
* Cloud Functions for Firebase
* Protect non-Firebase resources | |
firebase/multiple-range-fields5_32_0.txt | * Introduction
* Connect your app and prototype
* Get started
* Connect to the Authentication emulator
* Connect to the Realtime Database emulator
* Connect to the Firestore emulator
* Connect to the Cloud Storage for Firebase emulator
* Use the Hosting emulator
... | |
firebase/multiple-range-fields5_97_0.txt | * Recognize landmarks
* Overview
* iOS
* Android | |
firebase/firestore-data-filter-by-date-android-java9_51_0.txt | 0
Firestore query documents by birthday date, like only query by day and month
exclude year? | |
firebase/queries4_535_0.txt | Send feedback
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. | |
firebase/firestore-query-filter-compound-multi-eq5_10_0.txt | * Infrastructure as code
* Migration | |
firebase/queries4_122_0.txt | * Test Security Rules
* Set up the emulator
* Build unit tests
* Generate test reports
* Quickly validate Security Rules | |
firebase/firestore-data-filter-by-date-android-java9_66_0.txt | * Teams
* Advertising
* Collectives
* Talent
##### Company | |
firebase/multiple-range-fields5_43_0.txt | * Manage databases
* Add and manage data
* Structure data
* Add data
* Transactions and batched writes
* Data contention in transaction
* Delete data
* Manage Cloud Firestore with the Firebase console
* Export and import data
* Manage data retention with... | |
firebase/queries4_334_0.txt | Learn more about the tree-shakeable modular Web API and upgrade from the
namespaced API.
citiesRef.where('regions', 'array-contains-any',
['west_coast', 'east_coast']);
test.firestore.js | |
firebase/queries4_495_0.txt | Learn more about the tree-shakeable modular Web API and upgrade from the
namespaced API.
import { collectionGroup, query, where, getDocs } from "firebase/firestore";
const museums = query(collectionGroup(db, 'landmarks'), where('type', '==', 'museum'));
const querySnapshot = await getDo... | |
firebase/multiple-range-fields5_98_0.txt | * AutoML Vision Edge
* Overview
* Train image labeling models
* Label images with your models | |
firebase/queries4_400_0.txt | Note: This product is not available on watchOS and App Clip targets.
[[citiesRef queryWhereField:@"state" isGreaterThanOrEqualTo:@"CA"]
queryWhereField:@"state" isLessThanOrEqualTo:@"IN"];
[[citiesRef queryWhereField:@"state" isEqualTo:@"CA"]
queryWhereField:@"population" isGreaterTh... | |
firebase/firestore_4_16.txt | st.database.makeDataSnapshot('input', 'messages/11111/original');
// Wrap the makeUppercase function
const wrapped = test.wrap(myFunctions.makeUppercase);
// Call the wrapped function with the snapshot you constructed.
return wrapped(snap).then(() => {
// Read the value of the data at message... | |
firebase/performance_monitoring_2_2.txt | * [ Get started ](/docs/test-lab/ios/get-started)
* [ Run a Robo test ](/docs/test-lab/ios/robo-ux-test)
* [ Run a Robo script ](/docs/test-lab/ios/run-robo-scripts)
* [ Run a Game Loop test ](/docs/test-lab/ios/run-game-loop-test)
* [ Run an XCTest ](/docs/test-lab/ios/run-xctest)
* ... | |
firebase/firestore_3_21.txt | const docRef = await addDoc(collection(db, "users"), {
first: "Ada",
last: "Lovelace",
born: 1815
});
console.log("Document written with ID: ", docRef.id);
} catch (e) {
console.error("Error adding document: ", e);
}
[add_ada_lovelace.js](https://github.com/fi... | |
firebase/performance_monitoring_0_6.txt | om/devrel-
devsite/prod/v66c4dc9b65fea2172a0927d7be81b5b5d946ea60fc02578dd7c264b2c2852152/firebase/images/lockup-
google-for-developers.svg) ](https://developers.google.com/)
* [ Android ](//developer.android.com)
* [ Chrome ](//developer.chrome.com/home)
* [ Firebase ](//firebase.google.com)
* [ Google Cloud ... | |
firebase/queries4_81_0.txt | * Overview
* iOS+
* Android
* Deprecated Vision SDKs | |
firebase/queries4_129_0.txt | * Send tokens from the client
* iOS+
* Android
* Web
* Flutter
* C++
* Unity | |
firebase/queries4_84_0.txt | * Recognize landmarks
* iOS+
* Android |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.