@@ -28,7 +28,7 @@ A connector is a collection of Queries and Mutations. One SDK is generated for e
28
28
You can find more information about connectors in the [ Data Connect documentation] ( https://firebase.google.com/docs/data-connect#how-does ) .
29
29
30
30
``` javascript
31
- import { getDataConnect , DataConnect } from ' firebase/data-connect' ;
31
+ import { getDataConnect } from ' firebase/data-connect' ;
32
32
import { connectorConfig } from ' @dataconnect/default-connector' ;
33
33
34
34
const dataConnect = getDataConnect (connectorConfig);
@@ -41,7 +41,7 @@ To connect to the emulator, you can use the following code.
41
41
You can also follow the emulator instructions from the [ Data Connect documentation] ( https://firebase.google.com/docs/data-connect/web-sdk#instrument-clients ) .
42
42
43
43
``` javascript
44
- import { connectDataConnectEmulator , getDataConnect , DataConnect } from ' firebase/data-connect' ;
44
+ import { connectDataConnectEmulator , getDataConnect } from ' firebase/data-connect' ;
45
45
import { connectorConfig } from ' @dataconnect/default-connector' ;
46
46
47
47
const dataConnect = getDataConnect (connectorConfig);
@@ -98,7 +98,7 @@ export interface ListMoviesData {
98
98
### Using ` ListMovies ` 's action shortcut function
99
99
100
100
``` javascript
101
- import { getDataConnect , DataConnect } from ' firebase/data-connect' ;
101
+ import { getDataConnect } from ' firebase/data-connect' ;
102
102
import { connectorConfig , listMovies } from ' @dataconnect/default-connector' ;
103
103
104
104
@@ -122,7 +122,7 @@ listMovies().then((response) => {
122
122
### Using ` ListMovies ` 's ` QueryRef ` function
123
123
124
124
``` javascript
125
- import { getDataConnect , DataConnect , executeQuery } from ' firebase/data-connect' ;
125
+ import { getDataConnect , executeQuery } from ' firebase/data-connect' ;
126
126
import { connectorConfig , listMoviesRef } from ' @dataconnect/default-connector' ;
127
127
128
128
@@ -185,7 +185,7 @@ export interface GetMovieByIdData {
185
185
### Using ` GetMovieById ` 's action shortcut function
186
186
187
187
``` javascript
188
- import { getDataConnect , DataConnect } from ' firebase/data-connect' ;
188
+ import { getDataConnect } from ' firebase/data-connect' ;
189
189
import { connectorConfig , getMovieById , GetMovieByIdVariables } from ' @dataconnect/default-connector' ;
190
190
191
191
// The `GetMovieById` query requires an argument of type `GetMovieByIdVariables`:
@@ -215,7 +215,7 @@ getMovieById(getMovieByIdVars).then((response) => {
215
215
### Using ` GetMovieById ` 's ` QueryRef ` function
216
216
217
217
``` javascript
218
- import { getDataConnect , DataConnect , executeQuery } from ' firebase/data-connect' ;
218
+ import { getDataConnect , executeQuery } from ' firebase/data-connect' ;
219
219
import { connectorConfig , getMovieByIdRef , GetMovieByIdVariables } from ' @dataconnect/default-connector' ;
220
220
221
221
// The `GetMovieById` query requires an argument of type `GetMovieByIdVariables`:
@@ -275,7 +275,7 @@ export interface GetMetaData {
275
275
### Using ` GetMeta ` 's action shortcut function
276
276
277
277
``` javascript
278
- import { getDataConnect , DataConnect } from ' firebase/data-connect' ;
278
+ import { getDataConnect } from ' firebase/data-connect' ;
279
279
import { connectorConfig , getMeta } from ' @dataconnect/default-connector' ;
280
280
281
281
@@ -299,7 +299,7 @@ getMeta().then((response) => {
299
299
### Using ` GetMeta ` 's ` QueryRef ` function
300
300
301
301
``` javascript
302
- import { getDataConnect , DataConnect , executeQuery } from ' firebase/data-connect' ;
302
+ import { getDataConnect , executeQuery } from ' firebase/data-connect' ;
303
303
import { connectorConfig , getMetaRef } from ' @dataconnect/default-connector' ;
304
304
305
305
@@ -374,7 +374,7 @@ export interface CreateMovieData {
374
374
### Using ` CreateMovie ` 's action shortcut function
375
375
376
376
``` javascript
377
- import { getDataConnect , DataConnect } from ' firebase/data-connect' ;
377
+ import { getDataConnect } from ' firebase/data-connect' ;
378
378
import { connectorConfig , createMovie , CreateMovieVariables } from ' @dataconnect/default-connector' ;
379
379
380
380
// The `CreateMovie` mutation requires an argument of type `CreateMovieVariables`:
@@ -406,7 +406,7 @@ createMovie(createMovieVars).then((response) => {
406
406
### Using ` CreateMovie ` 's ` MutationRef ` function
407
407
408
408
``` javascript
409
- import { getDataConnect , DataConnect , executeMutation } from ' firebase/data-connect' ;
409
+ import { getDataConnect , executeMutation } from ' firebase/data-connect' ;
410
410
import { connectorConfig , createMovieRef , CreateMovieVariables } from ' @dataconnect/default-connector' ;
411
411
412
412
// The `CreateMovie` mutation requires an argument of type `CreateMovieVariables`:
@@ -474,7 +474,7 @@ export interface UpsertMovieData {
474
474
### Using ` UpsertMovie ` 's action shortcut function
475
475
476
476
``` javascript
477
- import { getDataConnect , DataConnect } from ' firebase/data-connect' ;
477
+ import { getDataConnect } from ' firebase/data-connect' ;
478
478
import { connectorConfig , upsertMovie , UpsertMovieVariables } from ' @dataconnect/default-connector' ;
479
479
480
480
// The `UpsertMovie` mutation requires an argument of type `UpsertMovieVariables`:
@@ -506,7 +506,7 @@ upsertMovie(upsertMovieVars).then((response) => {
506
506
### Using ` UpsertMovie ` 's ` MutationRef ` function
507
507
508
508
``` javascript
509
- import { getDataConnect , DataConnect , executeMutation } from ' firebase/data-connect' ;
509
+ import { getDataConnect , executeMutation } from ' firebase/data-connect' ;
510
510
import { connectorConfig , upsertMovieRef , UpsertMovieVariables } from ' @dataconnect/default-connector' ;
511
511
512
512
// The `UpsertMovie` mutation requires an argument of type `UpsertMovieVariables`:
@@ -572,7 +572,7 @@ export interface DeleteMovieData {
572
572
### Using ` DeleteMovie ` 's action shortcut function
573
573
574
574
``` javascript
575
- import { getDataConnect , DataConnect } from ' firebase/data-connect' ;
575
+ import { getDataConnect } from ' firebase/data-connect' ;
576
576
import { connectorConfig , deleteMovie , DeleteMovieVariables } from ' @dataconnect/default-connector' ;
577
577
578
578
// The `DeleteMovie` mutation requires an argument of type `DeleteMovieVariables`:
@@ -602,7 +602,7 @@ deleteMovie(deleteMovieVars).then((response) => {
602
602
### Using ` DeleteMovie ` 's ` MutationRef ` function
603
603
604
604
``` javascript
605
- import { getDataConnect , DataConnect , executeMutation } from ' firebase/data-connect' ;
605
+ import { getDataConnect , executeMutation } from ' firebase/data-connect' ;
606
606
import { connectorConfig , deleteMovieRef , DeleteMovieVariables } from ' @dataconnect/default-connector' ;
607
607
608
608
// The `DeleteMovie` mutation requires an argument of type `DeleteMovieVariables`:
@@ -660,7 +660,7 @@ export interface AddMetaData {
660
660
### Using ` AddMeta ` 's action shortcut function
661
661
662
662
``` javascript
663
- import { getDataConnect , DataConnect } from ' firebase/data-connect' ;
663
+ import { getDataConnect } from ' firebase/data-connect' ;
664
664
import { connectorConfig , addMeta } from ' @dataconnect/default-connector' ;
665
665
666
666
@@ -684,7 +684,7 @@ addMeta().then((response) => {
684
684
### Using ` AddMeta ` 's ` MutationRef ` function
685
685
686
686
``` javascript
687
- import { getDataConnect , DataConnect , executeMutation } from ' firebase/data-connect' ;
687
+ import { getDataConnect , executeMutation } from ' firebase/data-connect' ;
688
688
import { connectorConfig , addMetaRef } from ' @dataconnect/default-connector' ;
689
689
690
690
@@ -742,7 +742,7 @@ export interface DeleteMetaData {
742
742
### Using ` DeleteMeta ` 's action shortcut function
743
743
744
744
``` javascript
745
- import { getDataConnect , DataConnect } from ' firebase/data-connect' ;
745
+ import { getDataConnect } from ' firebase/data-connect' ;
746
746
import { connectorConfig , deleteMeta , DeleteMetaVariables } from ' @dataconnect/default-connector' ;
747
747
748
748
// The `DeleteMeta` mutation requires an argument of type `DeleteMetaVariables`:
@@ -772,7 +772,7 @@ deleteMeta(deleteMetaVars).then((response) => {
772
772
### Using ` DeleteMeta ` 's ` MutationRef ` function
773
773
774
774
``` javascript
775
- import { getDataConnect , DataConnect , executeMutation } from ' firebase/data-connect' ;
775
+ import { getDataConnect , executeMutation } from ' firebase/data-connect' ;
776
776
import { connectorConfig , deleteMetaRef , DeleteMetaVariables } from ' @dataconnect/default-connector' ;
777
777
778
778
// The `DeleteMeta` mutation requires an argument of type `DeleteMetaVariables`:
0 commit comments