title: GraphQL resolve multiple schema dynamically
body: <p>I'm developing a graphql service using [com.graphql-java:graphql-java:8.0] dependencies. Basically, I need to fetch some conditional data based on parent schema response. e.g, If ResultOne response contentTypeId == 1 for which, I need to fetch and prepare additional response using Fish type schema, accordingly for contentTypeId == 2, I need to fetch and prepare response using Fruit type schema.</p>
  
  <pre><code>extend type Query {
      search(
          name: String,
          category: String
      ): [ResultOne]
  }
  
  type ResultOne {
      contentTypeId: Int
      content: Content
  }
  
  type Fish {
      name: String    
      weight: Float
  }
  
  type Fruit {
      name: String
      Color: String
  }
  
  type Toy {
      name: String
      description: String
  }
  </code></pre>
  
  <p>I have tired with union but in that case, an exception occurred "There is no type resolver defined for interface/union 'Content' type".</p>
  
  <pre><code>union Content = Fish | Fruit |Toy
  </code></pre>
  
  <p>Please, feel free to ask me your question, If my problem not clear. </p>