Skip to main content
Version: v8.0.0

getGqlDocument

The document of the request - from the document option or, when it is omitted, from the endpoint


Import
import { getGqlDocument } from "@hyper-fetch/graphql"

Parameters​

getGqlDocument(request: RequestInstance)
Parameters
NameTypeDescription
request
RequestInstance

Returns​

type GraphQlEndpointType = string | DocumentNode;
GraphQlEndpointType