title: How to conditionally delete in DynamoDB using AppSync and Amplify
body: <p>I'm a newbie to DynamoDB and AppSync. I have a Tasks table and a TaskType table.</p>
  <pre><code>type TaskType
  @model
  @key(name: &quot;tasktypesOrgIndex&quot;, fields: [&quot;orgID&quot;], queryField: &quot;tasktypesByOrganization&quot;)
  {
    id: ID!
    orgID: ID!
    name:  String!
    description: String!
    type: TaskKeyword
    task:[Task] @connection
  }
  
  type Task
  @model
  {
    id: ID!
    orgID: ID!
    name:  String!
    description: String!
    type: TaskKeyword
  }
  
  enum TaskKeyword {
    TASK
    SUBTASK
  }
  </code></pre>
  <p>When someone tries to delete an entry from TaskType that has associated Tasks, I need to stop him from doing so. How can I do this?</p>