Type alias GraphQLResponseV6<FALLBACK_TYPE, TYPED_GQL_STRING>

GraphQLResponseV6<FALLBACK_TYPE, TYPED_GQL_STRING>: TYPED_GQL_STRING extends GeneratedQuery<infer _, infer QUERY_OUT>
    ? Promise<GraphQLResult<FixedQueryResult<QUERY_OUT>>>
    : TYPED_GQL_STRING extends GeneratedMutation<infer _, infer MUTATION_OUT>
        ? Promise<GraphQLResult<NeverEmpty<MUTATION_OUT>>>
        : TYPED_GQL_STRING extends GeneratedSubscription<infer _, infer SUB_OUT>
            ? GraphqlSubscriptionResult<NeverEmpty<SUB_OUT>>
            : FALLBACK_TYPE extends GraphQLQuery<infer _>
                ? Promise<GraphQLResult<FALLBACK_TYPE>>
                : FALLBACK_TYPE extends GraphQLSubscription<infer _>
                    ? GraphqlSubscriptionResult<FALLBACK_TYPE>
                    : FALLBACK_TYPE extends GraphQLOperationType<infer _, infer CUSTOM_OUT>
                        ? CUSTOM_OUT
                        : UnknownGraphQLResponse

The expected return type with respect to the given FALLBACK_TYPE and TYPED_GQL_STRING.

Type Parameters

  • FALLBACK_TYPE = unknown

  • TYPED_GQL_STRING extends string = string