firebase-data-connect

Builds and deploys Firebase SQL Connect backends with PostgreSQL schemas, authorized operations, and type-safe SDKs.

Updated May 5, 2026
One-click install
npx skills add https://github.com/nikegeorgian-stack/otgruzka-tovara --skill firebase-data-connect-nikegeorgian-stack
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: firebase-data-connect
Source: https://github.com/nikegeorgian-stack/otgruzka-tovara/tree/main/.cursor/skills/firebase-data-connect
Command: npx skills add https://github.com/nikegeorgian-stack/otgruzka-tovara --skill firebase-data-connect-nikegeorgian-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires firebase-tools, and includes references (resource) components.

What problem does it solve? Setting up a relational database backend with Firebase requires coordinating GraphQL schemas, PostgreSQL tables, authorization rules, and client SDK generation across multiple platforms, which is error-prone without structured guidance. ## Core Features & Use Cases - Schema and Operations Design: Define GraphQL data models with @table, relationships, indexes, and write authorized queries and mutations with row-level security via @auth, @check, and @redact. - Realtime and Advanced Queries: Configure @refresh directives for event-driven or time-based subscriptions, and use Native SQL for PostGIS, window functions, and complex aggregations. - Type-Safe SDK Generation: Generate client SDKs for Web, Android, iOS, Flutter, and Node.js Admin, plus deploy to Cloud SQL with schema migrations. - Use Case: Build a movie review app where users authenticate with Firebase Auth, post reviews stored in PostgreSQL, and subscribe to live leaderboard updates through a generated TypeScript SDK. ## Quick Start Initialize Firebase SQL Connect in my project and create a schema with authorized CRUD operations for my app idea.

Frequently Asked Questions about firebase-data-connect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Firebase Data Connect with PostgreSQL?▼

Run npx -y firebase-tools@latest init dataconnect to scaffold the dataconnect directory with dataconnect.yaml, schema.gql, and connector files. Then define your schema, write operations, and deploy with firebase deploy --only dataconnect.

How do I write authorized queries and mutations in Firebase SQL Connect?▼

Use the @auth directive with levels PUBLIC, USER, or NO_ACCESS on each operation. Add @check and @redact for row-level security and validation, and reference auth.uid in expressions to scope data to the current user.

When should I use Native SQL instead of GraphQL in Data Connect?▼

Default to Native GraphQL for standard CRUD, filtering, and joins since it provides type safety. Use Native SQL only for PostgreSQL extensions like PostGIS, window functions, complex aggregations, or data-modifying CTEs.

Does Firebase Data Connect support realtime subscriptions?▼

Yes, single-entity lookups refresh automatically, while list queries use the @refresh directive for event-driven updates via onMutationExecuted or time-based polling with every. Clients consume updates through the subscribe() method in generated SDKs.

How do I generate a type-safe SDK for my web or mobile app?▼

Configure the SDK output in connector.yaml with javascriptSdk, kotlinSdk, swiftSdk, or dartSdk blocks, then run firebase dataconnect:sdk:generate. Regenerate and redeploy whenever operations change, since operations are stored server-side.

Why does my Cloud Function trigger loop infinitely with Data Connect mutations?▼

The onMutationExecuted trigger fires again if your function executes another mutation. Always filter triggers by service and operation, and ensure no mutation inside the handler can retrigger itself directly or indirectly.