Magek Framework
    Preparing search index...

    Interface ProviderGraphQLLibrary

    interface ProviderGraphQLLibrary {
        rawToEnvelope(
            config: MagekConfig,
            rawGraphQLRequest: unknown,
        ): Promise<GraphQLRequestEnvelope | GraphQLRequestEnvelopeError>;
        handleResult(
            result?: unknown,
            headers?: Record<string, string>,
        ): Promise<unknown>;
    }
    Index

    Methods

    • Handles the result of a GraphQL request.

      Parameters

      • Optionalresult: unknown

        The result of the GraphQL request (optional).

      • Optionalheaders: Record<string, string>

        The headers associated with the GraphQL request result (optional).

      Returns Promise<unknown>

      A promise that resolves to any value.