<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/data-connect-event-triggers-and-generated-admin-sdks-lt3o1bgtn" -->

---
title: Data Connect: Event Triggers and Generated Admin SDKs
description: Firebase Data Connect now supports event triggers that let developers run server-side code (via Cloud Functions, Cloud Run, or App Hosting) whenever a mutation...
canonical: https://daily.dev/posts/data-connect-event-triggers-and-generated-admin-sdks-lt3o1bgtn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Data Connect: Event Triggers and Generated Admin SDKs | daily.dev
og:description: Firebase Data Connect now supports event triggers that let developers run server-side code (via Cloud Functions, Cloud Run, or App Hosting) whenever a mutation...
og:url: https://daily.dev/posts/data-connect-event-triggers-and-generated-admin-sdks-lt3o1bgtn
og:image: https://api.daily.dev/og/posts/Lt3o1bGtN.png
og:image:alt: Data Connect: Event Triggers and Generated Admin SDKs
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Connect: Event Triggers and Generated Admin SDKs

**[Firebase](https://daily.dev/sources/firebase-blog)** · 5 min read · 0 upvotes · 0 comments

## Summary

Firebase Data Connect now supports event triggers that let developers run server-side code (via Cloud Functions, Cloud Run, or App Hosting) whenever a mutation executes, enabling use cases like syncing data to Firestore, kicking off async workflows, or sending notifications. Filtering can target specific services, connectors, or operations, with wildcard support via capture groups, though no 'before' snapshot of data is available. Additionally, Data Connect now offers generated admin SDKs: type-safe SDKs auto-generated from gql definitions for use in privileged backend environments, alongside the existing Admin SDK APIs for arbitrary GraphQL and bulk operations. Redeploying query/mutation changes requires regenerating and redeploying these admin SDKs.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://firebase.blog/posts/2025/11/dataconnect-nov25>

## Questions this post answers

### How do I run server-side code when a mutation happens in Firebase Data Connect?

Use the onMutationExecuted event trigger, which fires a Cloud Function (or other service like Cloud Run or App Hosting) whenever a mutation executes in a Data Connect service. Access the mutation payload via event.data, a MutationEventData object, and optionally filter by service, connector, or operation name to target specific mutations.

_Developers wiring Data Connect mutations to backend workflows can track platform updates like this on daily.dev._

### Can I get the before and after state of data in a Firebase Data Connect mutation trigger?

No, Data Connect mutation events only provide the arguments sent to the mutation and the data returned upon execution, not a before snapshot. This differs from Firestore or Realtime Database triggers because Data Connect proxies requests to the underlying database, so the prior state cannot be captured transactionally.

_Anyone designing event-driven data sync logic can follow Data Connect changes like this via daily.dev._

### What happens to generated admin SDKs when I change my Data Connect schema or queries?

Any deployed changes to Data Connect queries and mutations require regenerating the admin SDK and redeploying services that depend on it, since operations are stored server-side rather than submitted by clients at request time, similar to how Cloud Functions work. The generated admin SDK is a type-safe SDK built from gql definitions for privileged backend use.

_Teams maintaining generated SDKs alongside schema changes can keep up with updates like this through daily.dev._

## Similar posts on daily.dev

- [How to Use Dart Cloud Functions and the Firebase Admin SDK: A Handbook for Developers](https://daily.dev/posts/how-to-use-dart-cloud-functions-and-the-firebase-admin-sdk-a-handbook-for-developers-ailkvowjb) · freeCodeCamp · 2 upvotes · 0 comments

---

Tags: [#backend](https://daily.dev/tags/backend), [#graphql](https://daily.dev/tags/graphql), [#firebase](https://daily.dev/tags/firebase), [#gcp-cloud-functions](https://daily.dev/tags/gcp-cloud-functions)

[View this post on daily.dev](https://daily.dev/posts/data-connect-event-triggers-and-generated-admin-sdks-lt3o1bgtn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Data Connect: Event Triggers and Generated Admin SDKs","url":"https://daily.dev/posts/data-connect-event-triggers-and-generated-admin-sdks-lt3o1bgtn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/data-connect-event-triggers-and-generated-admin-sdks-lt3o1bgtn"},"datePublished":"2026-08-23T12:19:33.072Z","dateModified":"2026-08-23T12:27:33.881Z","description":"Firebase Data Connect now supports event triggers that let developers run server-side code (via Cloud Functions, Cloud Run, or App Hosting) whenever a mutation...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d3322038e46174f803000b4e1255e780?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d3322038e46174f803000b4e1255e780?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Firebase","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Firebase","logo":"https://media.daily.dev/image/upload/s--i395oqZH--/f_auto,q_auto/v1787487448/logos/firebase-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/firebase-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/data-connect-event-triggers-and-generated-admin-sdks-lt3o1bgtn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"backend,graphql,firebase,gcp-cloud-functions","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Firebase","item":"https://daily.dev/sources/firebase-blog"},{"@type":"ListItem","position":3,"name":"Data Connect: Event Triggers and Generated Admin SDKs"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/data-connect-event-triggers-and-generated-admin-sdks-lt3o1bgtn#faq","mainEntity":[{"@type":"Question","name":"How do I run server-side code when a mutation happens in Firebase Data Connect?","acceptedAnswer":{"@type":"Answer","text":"Use the onMutationExecuted event trigger, which fires a Cloud Function (or other service like Cloud Run or App Hosting) whenever a mutation executes in a Data Connect service. Access the mutation payload via event.data, a MutationEventData object, and optionally filter by service, connector, or operation name to target specific mutations. Developers wiring Data Connect mutations to backend workflows can track platform updates like this on daily.dev."}},{"@type":"Question","name":"Can I get the before and after state of data in a Firebase Data Connect mutation trigger?","acceptedAnswer":{"@type":"Answer","text":"No, Data Connect mutation events only provide the arguments sent to the mutation and the data returned upon execution, not a before snapshot. This differs from Firestore or Realtime Database triggers because Data Connect proxies requests to the underlying database, so the prior state cannot be captured transactionally. Anyone designing event-driven data sync logic can follow Data Connect changes like this via daily.dev."}},{"@type":"Question","name":"What happens to generated admin SDKs when I change my Data Connect schema or queries?","acceptedAnswer":{"@type":"Answer","text":"Any deployed changes to Data Connect queries and mutations require regenerating the admin SDK and redeploying services that depend on it, since operations are stored server-side rather than submitted by clients at request time, similar to how Cloud Functions work. The generated admin SDK is a type-safe SDK built from gql definitions for privileged backend use. Teams maintaining generated SDKs alongside schema changes can keep up with updates like this through daily.dev."}}]}
```

