title: How to test Subscription in AWS AppSync Console?
body: <p>I have written the following subscription and mutation code in the App Sync Console:</p>
  <pre><code>subscription SubscribeToCreateDoctor {
    
    subscribeToCreateDoctor {
         id
         name
    }
       
  }
  
  mutation CreateDoctor {
  
        createDoctor(
          input: {
            name: &quot;sanju&quot;, 
            registrationNo: &quot;some value&quot;,
            speciality: &quot;some value&quot;,
            profilePic: &quot;some value&quot;,
            placeOfResidence: &quot;some value&quot;, 
            medicalCenter: &quot;some value&quot;,
            direction: &quot;some value&quot;,
            municipality: &quot;some value&quot;,
            isAvailable: &quot;No&quot;,
          }) {
           id
           name
          
         }
  }
  </code></pre>
  <p>In the schema, I have defined both the mutation and subscription:</p>
  <pre><code>type Subscription {
      
      subscribeToCreateDoctor: Doctor
          @aws_subscribe(mutations: [&quot;createDoctor&quot;])
  }
  
  type Mutation {
      
      createDoctor(input: CreateDoctorInput!): Doctor
  
  }
  </code></pre>
  <p>When I test the CreateDoctor mutation in the App Sync console, I get the following response:</p>
  <pre><code>{
    &quot;data&quot;: {
      &quot;createDoctor&quot;: {
        &quot;id&quot;: &quot;5845c994-2389-4df9-8a3e-e13dc24b0153&quot;,
        &quot;name&quot;: &quot;Sanju&quot;
      }
    }
  }
  </code></pre>
  <p>However, I don't see any logs getting printed for the subscription in AWS App Sync console. The same if I test in the React Native Client app, the subscription event is triggered.</p>
  <p><strong>As per AWS docs it possible to test subscription in App Sync console:</strong>
  <a href="https://docs.aws.amazon.com/appsync/latest/devguide/test-debug-resolvers.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/appsync/latest/devguide/test-debug-resolvers.html</a></p>
  <blockquote>
  <p>AWS AppSync lets you log errors and full request details using Amazon
  CloudWatch. Additionally, you can use the AWS AppSync console to test
  GraphQL queries, mutations, and subscriptions and live stream log data
  for each request back into the query editor to debug in real time. For
  subscriptions, the logs display connection-time information.</p>
  </blockquote>
  <p>Did anyone successfully tested subscriptions in AWS Sync Console?</p>