title: Filtering by ObjectId type with HotChocolate
body: <p>I am trying to create a Graphql Schema and schema is crating but I cannot see a filtering option for Id (which is MongoDb ObjectId type). Could you tell me what I am missing? I would like to filter by Id as well but there is no like that option on created schema. You can see my test implementation below for that.</p>
  <pre><code>public class Startup
      {
          public IConfiguration Configuration { get; }
  
          public Startup(IConfiguration configuration)
          {
              Configuration = configuration;
          }
  
          // This method gets called by the runtime. Use this method to add services to the container.
          public void ConfigureServices(IServiceCollection services)
          {
              TypeConversion.Default.Register&lt;string, ObjectId&gt;(from =&gt; ObjectId.Parse(from));
              TypeConversion.Default.Register&lt;ObjectId, string&gt;(from =&gt; from.ToString());            
              services.AddSingleton&lt;IAuthorService, InMemoryAuthorService&gt;();
  
              services.AddGraphQL(s =&gt; SchemaBuilder.New()
                  .AddServices(s)
                  .AddType&lt;AuthorType&gt;()
                  .AddQueryType&lt;Query&gt;()
                  .BindClrType&lt;ObjectId, IdType&gt;()
                  .Create());
          }
  
          // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
          public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
          {
              if (env.IsDevelopment())
              {
                  app.UsePlayground(new PlaygroundOptions
                  {
                      QueryPath = &quot;/api&quot;,
                      Path = &quot;/playground&quot;
                  });
              }
              app.UseRouting();
              app.UseGraphQL(&quot;/api&quot;);
          }
      }
   public class AuthorType : ObjectType&lt;Author&gt;
      {
          protected override void Configure(IObjectTypeDescriptor&lt;Author&gt; descriptor)
          {
              descriptor.Field(t =&gt; t.Id)
                       .Type&lt;IdType&gt;()
                       .Resolver(c =&gt; c.Parent&lt;Author&gt;().Id);
              descriptor.Field(a =&gt; a.AuthorId).Type&lt;StringType&gt;();
              descriptor.Field(a =&gt; a.Name).Type&lt;StringType&gt;();
              descriptor.Field(a =&gt; a.Surname).Ignore();
          }
      }
      public class Author
      {
          public ObjectId Id { get; set; }
          public int AuthorId { get; set; }
          public string Name { get; set; }
          public string Surname { get; set; }
      }
  
      public class Query
      {
          private readonly IAuthorService _authorService;            
  
          public Query(IAuthorService authorService)
          {
              _authorService = authorService;               
          }
          [UsePaging]
          [UseFiltering]
          public IQueryable&lt;Author&gt; Authors() =&gt; _authorService.GetAll();    
        
      }
  
  
      public interface IAuthorService
      {
          IQueryable&lt;Author&gt; GetAll();
      }
  
      public class InMemoryAuthorService : IAuthorService
      {
          private IList&lt;Author&gt; _authors;
  
          public InMemoryAuthorService()
          {
              _authors = new List&lt;Author&gt;()
              {
                  new Author() {Id = ObjectId.Parse(&quot;5e4442c28ae77cb23386b911&quot;), AuthorId = 1, Name = &quot;Name 1&quot;, Surname = &quot;Surname 1&quot;},
                  new Author() {Id = ObjectId.Parse(&quot;5e4442c28ae77cb23386b912&quot;), AuthorId = 2, Name = &quot;Name 2&quot;, Surname = &quot;Surname 2&quot;},
                  new Author() {Id = ObjectId.Parse(&quot;5e4442c28ae77cb23386b913&quot;),AuthorId = 3, Name = &quot;Name 4&quot;, Surname = &quot;Surname 3&quot;}
              };
          }
  
          public IQueryable&lt;Author&gt; GetAll()
          {
              return _authors.AsQueryable();
          }
      }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/ZW2dk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZW2dk.png" alt="enter image description here" /></a></p>