Error: Field "Query.products" can only be defined once

System Information
  • Strapi Version: 3.4.4
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

Hello, the error showed when I was customizing the schema.graphql.js:

module.exports = {
    query: `products(sort:String, limit:Int, start: Int, types:ProductType, category:ProductCategory, searchText: String, where:JSON, publicationState:PublicationState ):[Product]`,
    resolver: {
        Query: {
            products: {
                description: 'Return products with all possible filters',
                resolverOf: 'application::product.product.find',
                // resolver: async (obj, options, ctx) => {
                //     console.log('options:', JSON.stringify(options))
                // },
            },
        },
    },
}

As I uderstand, this happens due to the same content type names both in singular and plural. But in my case I don’t have any content types with the same names like described in this issue.