getGqlOperationName
Name of the first operation of the document, sent as
operationName
.
Anonymous operations and documents that do not parse have none.
Import
import { getGqlOperationName } from "@hyper-fetch/graphql"
Source
Package
Parameters
getGqlOperationName(document: GraphQlEndpointType)
Parameters
| Name | Type | Description |
|---|---|---|
| document | |
Returns
undefined | string

