Interface representing GraphQL options.
Signature:
export interface GraphqlOptions<Variables>
Properties
Property | Type | Description |
---|---|---|
impersonate | ImpersonateAuthenticated | ImpersonateUnauthenticated | If set, impersonate a request with given Firebase Auth context and evaluate the auth policies on the operation. If omitted, bypass any defined auth policies. |
operationName | string | The name of the GraphQL operation. Required only if query contains multiple operations. |
variables | Variables | Values for GraphQL variables provided in this query or mutation. |
GraphqlOptions.impersonate
If set, impersonate a request with given Firebase Auth context and evaluate the auth policies on the operation. If omitted, bypass any defined auth policies.
Signature:
impersonate?: ImpersonateAuthenticated | ImpersonateUnauthenticated;
GraphqlOptions.operationName
The name of the GraphQL operation. Required only if query
contains multiple operations.
Signature:
operationName?: string;
GraphqlOptions.variables
Values for GraphQL variables provided in this query or mutation.
Signature:
variables?: Variables;