graphqlFetcher
This module exports the SDK's default GraphQL POST fetch helper.
Exports
- default export
graphqlFetcher<T>(endpoint, query, variables?)
import graphqlFetcher from "@gmx-io/sdk/utils/graphqlFetcher";
It posts { query, variables } to the target endpoint and returns the data field from the GraphQL response.