title: splitting query type in hot chocolate qraphql in asp.net core
body: <p>This is my config in startup .cs</p>
  <pre><code> .AddGraphQLServer()
                     .AddQueryType&lt;Query&gt;()
                     .AddType&lt;CustomerQuery&gt;()
                     .AddType&lt;ProductQuery&gt;()
                     .AddType&lt;CustomerType&gt;()
                     .AddType&lt;ProductType&gt;()
                     .AddFiltering()
                     .AddSorting();
  </code></pre>
  <p>I have two class  separate query class</p>
  <pre><code>[ExtendObjectType(Name = &quot;Query&quot;)]
  public class CustomerQuery
  {
      private readonly IRepository&lt;Customer&gt; customerRepository;
  
      public CustomerQuery(IRepository&lt;Customer&gt; customerRepository)
      {
          this.customerRepository = customerRepository;
      }
      public IQueryable&lt;Customer&gt; customers() =&gt; customerRepository.Table.Where(i=&gt;i.Active==true);
      public Customer customer (string id) =&gt; customerRepository.GetById(Convert.ToInt16(id));
  
  }
  
  [ExtendObjectType(Name = &quot;Query&quot;)]
  public  class ProductQuery
  {
      private readonly IRepository&lt;Product&gt; productRepository;
  
      public ProductQuery(IRepository&lt;Product&gt; productRepository)
      {
          this.productRepository = productRepository;
      }
  
      public IQueryable&lt;Product&gt; Products() =&gt; productRepository.Table.AsQueryable();
  }
  </code></pre>
  <p>I have two other class which configure ProductQuery and CustomerQuery</p>
  <pre><code>public class ProductQueryType:ObjectType&lt;ProductQuery&gt;
  {
      protected override void Configure(IObjectTypeDescriptor&lt;ProductQuery&gt; descriptor)
      {
          descriptor
               .Field(f =&gt; f.Products())
               .UsePaging()
               .UseFiltering()
               .UseSorting()
               .Type&lt;ProductType&gt;();
               
      }
  }
  
  public class CustomerQueryType:ObjectType&lt;CustomerQuery&gt;
  {
      protected override void Configure(IObjectTypeDescriptor&lt;CustomerQuery&gt; descriptor)
      {
          descriptor
              .Field(f =&gt; f.customers())
              .UsePaging()
              .UseFiltering()
              .UseSorting()
              .Type&lt;CustomerType&gt;();
      }
  }
  </code></pre>
  <p>I cant add these two configuration in my startup.cs , it makes graphl endpoint some error ,
  how can i  add query configuration pipeline ?</p>