Alias values are getting null in appsync subscriptions

0

What is the reason for getting null in subscription response, getting proper value in mutation response

subscription MySubscription {
  updateFieldResponseSubscription(id: 1){
    __typename
    ... on TaskFieldResponse {
      id
      fieldId
      field {
        response {
          ... on GQLStringType {
            stringVal: value
            __typename
          }
          __typename
        }
        __typename
      }
      __typename
    }
  }
}

Here I am getting null for the stringVal

My Mutation is

mutation MyMutation($inputArguments: UpdateFieldResponseArgs!) {
  updateFieldResponse(inputArguments: $inputArguments){
    __typename
    ... on TaskFieldResponse {
      id
      fieldId
      field {
        response {
          ... on GQLStringType {
            stringVal: value
            __typename
          }
          __typename
        }
        __typename
      }
      __typename
    }
  }
}
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ