firebase-data-connect

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

2|Updated Mar 7, 2025
One-click install
npx skills add https://github.com/AbdelrhmanUZaki/KnowledgeNuggets --skill firebase-data-connect-abdelrhmanuzaki
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: firebase-data-connect
Source: https://github.com/AbdelrhmanUZaki/KnowledgeNuggets/tree/main/2-setup/shared/gemini/config/plugins/firebase/skills/firebase_data_connect_basics
Command: npx skills add https://github.com/AbdelrhmanUZaki/KnowledgeNuggets --skill firebase-data-connect-abdelrhmanuzaki

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, authorization rules, connector configurations, and client SDK generation, which is error-prone without structured guidance. ## Core Features & Use Cases - Schema and Data Modeling: Define GraphQL types with @table, @ref relationships, and PostgreSQL data types including Vector and JSON. - Authorized Operations: Write queries and mutations with @auth, @check, @redact, transactions, upserts, and real-time @refresh subscriptions. - Type-Safe SDK Generation: Generate client SDKs for Web, Android, iOS, Flutter, and Node.js Admin from connector.yaml configuration. - Use Case: A developer building a movie review app can define the schema, add user-owned review mutations with row-level security, validate with dataconnect:compile, and generate a TypeScript SDK for the web frontend. ## Quick Start Ask the AI to initialize Firebase SQL Connect in your project and design a schema with authorized queries for your 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 firebase-tools@latest init dataconnect to scaffold the dataconnect directory with dataconnect.yaml, schema.gql, and connector files. Then define your GraphQL schema, validate with dataconnect:compile, and deploy with firebase deploy --only dataconnect.

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

Define operations in queries.gql and mutations.gql using @auth(level:) for PUBLIC, USER, or NO_ACCESS control. Use @check and @redact for row-level security, and _insert, _update, _delete, or _upsert for mutations.

Should I use Native GraphQL or Native SQL in Firebase Data Connect?▼

Default to Native GraphQL, which provides auto-generated fields, strong typing, and schema enforcement. Use Native SQL only for advanced needs like PostGIS, window functions, or complex aggregations, since it lacks type safety and requires positional parameters.

Does Firebase Data Connect support real-time data updates?▼

Yes, real-time subscriptions are supported through the @refresh directive for time-based polling and event-driven updates. CEL conditions can scope refresh triggers precisely to relevant data changes.

Which platforms can use generated Firebase Data Connect SDKs?▼

SDK generation supports Web (TypeScript), Android (Kotlin), iOS (Swift), Flutter (Dart), and Node.js Admin. Configure output directories and packages in connector.yaml, then run firebase dataconnect:sdk:generate.