Functions
| Function | Description |
|---|---|
| initGraphqlServer(opts) | |
| onGraphRequest(opts) | Handles HTTPS GraphQL requests. |
Interfaces
| Interface | Description |
|---|---|
| FirebaseContext | Per-request context state shared by all resolvers in a particular query. |
| GraphqlResolvers | Resolver functions that populate data for individual GraphQL schema fields. |
| GraphqlServerOptions | Options for configuring the GraphQL server. |
dataconnect.graphql.initGraphqlServer()
Signature:
export declare function initGraphqlServer(opts: GraphqlServerOptions): Promise<express.Express>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| opts | GraphqlServerOptions |
Returns:
Promise<express.Express>
dataconnect.graphql.onGraphRequest()
Handles HTTPS GraphQL requests.
Signature:
export declare function onGraphRequest(opts: GraphqlServerOptions): HttpsFunction;
Parameters
| Parameter | Type | Description |
|---|---|---|
| opts | GraphqlServerOptions | Options for configuring the GraphQL server. |
Returns:
HttpsFunction
{HttpsFunction} A function you can export and deploy.