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
    }
  }
}
asked 2 years ago48 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions