GraphQL filter by custom field

System Information
  • Strapi Version: 4.0.5
  • Operating System: MacOs
  • Database: sqlite3
  • Node Version: 14.15.4
  • NPM Version:
  • Yarn Version: 1.22.11

I’ve added a custom field to the GraphQL schema as follows:

register({ strapi }) {
    const extensionService = strapi.plugin("graphql").service("extension");

    const extension = () => ({
      typeDefs: `
        type Movie {
          isComingSoon: Boolean
        }
      `,
      resolvers: {
        Movie: {
          isComingSoon(movie) {
            return strapi.service("api::movie.movie").isComingSoon(movie);
          },
        },
      },
    });

    extensionService.use(extension);
  },

where the field isComingSoon returns a boolean.

How can I add this custom field as an option in the filter args?
i.e.

movies(
    filters: {
      isComingSoon: { eq: true }
    }
  )