Skip to main content
Google Cloud
Documentation Technology areas
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Generative AI
  • Industry solutions
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Costs and usage management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
  • Migration
Related sites
  • Google Cloud Home
  • Free Trial and Free Tier
  • Architecture Center
  • Blog
  • Contact Sales
  • Google Cloud Developer Center
  • Google Developer Center
  • Google Cloud Marketplace
  • Google Cloud Marketplace Documentation
  • Google Cloud Skills Boost
  • Google Cloud Solution Center
  • Google Cloud Support
  • Google Cloud Tech Youtube Channel
/
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Português – Brasil
  • 中文 – 简体
  • 日本語
  • 한국어
Console Sign in
  • Firestore in Native Mode
Guides Reference Samples Resources
Contact Us Start free
Google Cloud
  • Documentation
    • Guides
    • Reference
    • Samples
    • Resources
  • Technology areas
    • More
  • Cross-product tools
    • More
  • Related sites
    • More
  • Console
  • Contact Us
  • Start free
  • Discover
  • Product overview
  • Editions overview
  • Choose between Native mode and Datastore mode
  • Client library overview
  • Get started
  • Use a server client library
  • Use a mobile or web client library
  • Create and manage
  • Create and manage databases
  • Storage size calculations
  • Design
  • Design a data model
    • Data model overview
    • Structure data
    • Supported data types
  • Indexes
    • Indexes overview
    • Manage indexes
  • Develop
  • Add, query, and delete data
    • Add data
      • Add and update data
      • Transactions and batched writes
      • Data contention in transactions
      • Support frequent counters on documents
    • Query data
      • Get data
      • Get real-time updates
      • Order and limit data
      • Query and filter data
      • Query with range & inequality filters on multiple fields
        • Overview
        • Optimize your queries
      • Work with aggregation queries
      • Paginate data with query cursors
      • Summarize data with aggregation queries
      • Enable offline data
    • Delete data
      • Delete documents and fields
      • Manage data retention with TTL policies
  • Scale your apps
    • Understand reads and writes at scale
    • Understand real-time queries at scale
    • Best practices for designing an app
    • Shard documents for timestamp indexing
  • Develop generative AI features
  • Use Firestore emulator
  • Manage Firestore with the console
  • Search with vector embeddings
  • Firestore REST API
  • Build a recommendation app
  • Build LLM-powered applications using LangChain
  • Secure and control access
  • Secure your database
    • Secure data for server clients
    • Configure VPC Service Controls
    • Create and manage tags
    • Configure data locality with regional endpoints
  • Secure data for mobile and web clients
    • Get started with security rules
    • Structure security rules
    • Write conditions for security rules
    • Securely querying data
    • Control access per field
    • Fix insecure rules
    • Test security rules
    • Secure data access for users and groups
  • Server-side encryption
  • Secure data with customer-managed encryption keys (CMEK)
    • About CMEK
    • Use CMEK
  • Manage resources using custom constraints
  • Process data
  • Create event-driven architectures with Eventarc
    • Overview
    • Extend Firestore with Cloud Functions (2nd gen)
  • Integrate with BigQuery
  • Process data in bulk with Dataflow
  • Delete data with a callable Cloud Function
  • Use Firestore connector for Workflows
  • Perform full text search with third-party services
  • Build presence in apps with Cloud Functions
  • Extending Firestore with Cloud Functions (1st gen)
  • Perform geo queries using Geohashes
  • Firestore extensions
    • Implement an AI-driven chatbot
    • Enrich handling of text
    • Enrich value of media
  • Bulk delete data
  • Disaster recovery
  • Plan disaster recovery
  • Back up and restore data
    • Create a backup schedule and restore data
    • Perform an in-place restore
  • Use point-in-time recovery (PITR)
    • Overview
    • Work with PITR
  • Import and export
  • Overview
  • Schedule data exports
  • Move data between projects
  • Monitor and troubleshoot
  • Monitor usage
  • Use Query Explain
    • Explain query performance
    • Query Explain report reference
  • Monitor performance with Cloud Monitoring metrics
    • Overview
    • Use the Cloud Monitoring dashboard
  • Use client-side traces
    • Monitor performance with client-side traces
    • Trace span attributes and events
  • Audit logging
  • Analyze usage patterns with Key Visualizer
    • Overview
    • Use Key Visualizer
    • Explore heatmaps
    • Heatmap pattern for document keys
    • Heatmap pattern for index keys
  • Troubleshoot
    • Unlink App Engine from Firestore
    • Resolve latency issues
    • Understand error codes
  • Recommendations
  • Reliability recommender
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Generative AI
  • Industry solutions
  • Networking
  • Observability and monitoring
  • Security
  • Storage
  • Access and resources management
  • Costs and usage management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
  • Migration
  • Google Cloud Home
  • Free Trial and Free Tier
  • Architecture Center
  • Blog
  • Contact Sales
  • Google Cloud Developer Center
  • Google Developer Center
  • Google Cloud Marketplace
  • Google Cloud Marketplace Documentation
  • Google Cloud Skills Boost
  • Google Cloud Solution Center
  • Google Cloud Support
  • Google Cloud Tech Youtube Channel
  • Home
  • Firestore in Native Mode
  • Documentation
  • Guides

Tutorials
Stay organized with collections Save and categorize content based on your preferences.

  • Android Friendly Eats

    Build a restaurant recommendation service using Firestore and Android.

  • iOS Friendly Eats

    Build a restaurant recommendation service using Firestore and iOS.

  • Web Friendly Eats

    Build a restaurant recommendation service using Firestore and the Firebase Web SDK.

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.

  • Why Google

    • Choosing Google Cloud
    • Trust and security
    • Modern Infrastructure Cloud
    • Multicloud
    • Global infrastructure
    • Customers and case studies
    • Analyst reports
    • Whitepapers
  • Products and pricing

    • See all products
    • See all solutions
    • Google Cloud for Startups
    • Google Cloud Marketplace
    • Google Cloud pricing
    • Contact sales
  • Support

    • Google Cloud Community
    • Support
    • Release Notes
    • System status
  • Resources

    • GitHub
    • Getting Started with Google Cloud
    • Google Cloud documentation
    • Code samples
    • Cloud Architecture Center
    • Training and Certification
    • Developer Center
  • Engage

    • Blog
    • Events
    • X (Twitter)
    • Google Cloud on YouTube
    • Google Cloud Tech on YouTube
    • Become a Partner
    • Google Cloud Affiliate Program
    • Press Corner
  • About Google
  • Privacy
  • Site terms
  • Google Cloud terms
  • Manage cookies
  • Our third decade of climate action: join us
  • Sign up for the Google Cloud newsletter Subscribe
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Português – Brasil
  • 中文 – 简体
  • 日本語
  • 한국어