title: How to write resolve graphql filters in apollo graphql server
body: <h1>Requirement:</h1>
  
  <p>I need recommendation in writing resolver function for handling graphql filters. The filter supports eq, ne, like, contains and not like operators. </p>
  
  <h2>Schema:</h2>
  
  <pre><code>import { gql } from 'apollo-server-express';
  
  export default gql`
     extend type Query {
         authGroups(filter: AuthGroupFilterInput): AuthGroupConnection!
      }
  
      type AuthGroup implements Node {
         id: ID!
         name: String
      }
  
      input AuthGroupFilterInput {
         name: StringFilterInput
      }
  
      type AuthGroupConnection {
         edges: [AuthGroup!]!
         pageInfo: PageInfo
      }
  
      input StringFilterInput {
        lt: String,
        gt: String,
        eq: String,
        ne: String,
        contains: String,
        like: String,
        notLike: String,
      }  
  
  `;
  </code></pre>
  
  <h2>GraphQL Query:</h2>
  
  <pre><code> Query {
      authGroups(filter: {  
            name: {
               like: '%AD'
            }
         }
        )
      {
         edges {
           id
           name
         }
      }
   }
  </code></pre>
  
  <h2>Resolvers:</h2>
  
  <pre><code>authGroups: async (parent, args, { models }) =&gt; {
          const filter = args.filter;
          const filters = filter 
                          ? {
                              where: filter,
                          } 
                          : {};
  
          const authGroups = await models.authGroup.findAll({
             ...filters
          //    where : {
          //        name: {
          //            [Sequelize.Op.like] : 'AD%'
          //        }
          //    }
          });  
  }
  </code></pre>
  
  <h2>Technologies Used:</h2>
  
  <ul>
  <li>Apollo Server</li>
  <li>express</li>
  <li>Sequelize</li>
  <li>PostgreSQL</li>
  </ul>
  
  <p>How to replace the operators in filter with [Sequelize.Op.operator]? I tried using operatorsAliases in config.json but it didn't have any effect. Your help is much appreciated.</p>