dataconnect namespace Stay organized with collections Save and categorize content based on your preferences.
Functions
| Function | Description |
|---|---|
| onMutationExecuted(mutation, handler) | Event handler that triggers when a mutation is executed in Firebase Data Connect. |
| onMutationExecuted(opts, handler) | Event handler that triggers when a mutation is executed in Firebase Data Connect. |
Interfaces
| Interface | Description |
|---|---|
| DataConnectEvent | |
| GraphqlError | |
| GraphqlErrorExtensions | |
| MutationEventData | |
| OperationOptions | OperationOptions extend EventHandlerOptions with a provided service, connector, and operation. |
| RawDataConnectEvent | |
| RawMutation | |
| SourceLocation |
Type Aliases
| Type Alias | Description |
|---|---|
| AuthType | AuthType defines the possible values for the authType field in a Firebase Data Connect event. - app_user: an end user of an application.. - admin: an admin user of an application. In the context of impersonate endpoints used by the admin SDK, the impersonator. - unknown: a general type to capture all other principals not captured in the other auth types. |
| DataConnectParams |
dataconnect.onMutationExecuted()
Event handler that triggers when a mutation is executed in Firebase Data Connect.
Signature:
exportdeclarefunctiononMutationExecuted<Mutationextendsstring,Variables=unknown,ResponseData=unknown>(mutation:Mutation,handler:(event:DataConnectEvent<MutationEventData<Variables,ResponseData>,DataConnectParams<Mutation>>)=>unknown|Promise<unknown>):CloudFunction<DataConnectEvent<MutationEventData<Variables,ResponseData>,DataConnectParams<Mutation>>>;Parameters
| Parameter | Type | Description |
|---|---|---|
| mutation | Mutation | The mutation path to trigger on. |
| handler | (event:DataConnectEvent<MutationEventData<Variables, ResponseData>,DataConnectParams<Mutation>>) => unknown | Promise<unknown> | Event handler which is run every time a mutation is executed. |
Returns:
CloudFunction<DataConnectEvent<MutationEventData<Variables, ResponseData>,DataConnectParams<Mutation>>>
dataconnect.onMutationExecuted()
Event handler that triggers when a mutation is executed in Firebase Data Connect.
Signature:
exportdeclarefunctiononMutationExecuted<OptionsextendsOperationOptions,Variables=unknown,ResponseData=unknown>(opts:Options,handler:(event:DataConnectEvent<MutationEventData<Variables,ResponseData>,DataConnectParams<Options>>)=>unknown|Promise<unknown>):CloudFunction<DataConnectEvent<MutationEventData<Variables,ResponseData>,DataConnectParams<Options>>>;Parameters
| Parameter | Type | Description |
|---|---|---|
| opts | Options | Options that can be set on an individual event-handling function. |
| handler | (event:DataConnectEvent<MutationEventData<Variables, ResponseData>,DataConnectParams<Options>>) => unknown | Promise<unknown> | Event handler which is run every time a mutation is executed. |
Returns:
CloudFunction<DataConnectEvent<MutationEventData<Variables, ResponseData>,DataConnectParams<Options>>>
dataconnect.AuthType
AuthType defines the possible values for the authType field in a Firebase Data Connect event. - app_user: an end user of an application.. - admin: an admin user of an application. In the context of impersonate endpoints used by the admin SDK, the impersonator. - unknown: a general type to capture all other principals not captured in the other auth types.
Signature:
exporttypeAuthType="app_user"|"admin"|"unknown";dataconnect.DataConnectParams
Signature:
exporttypeDataConnectParams<PathPatternOrOptionsextendsstring|OperationOptions>=PathPatternOrOptionsextendsstring?ParamsOf<PathPatternOrOptions>:PathPatternOrOptionsextendsOperationOptions<inferServiceextendsstring,inferConnectorextendsstring,inferOperationextendsstring>?Record<VarName<Service>|VarName<Connector>|VarName<Operation>,string>:never;Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-10 UTC.