GraphQL schema not being generated automatically

System Information
  • Strapi Version: 3.4.6
  • Operating System: Big Sour 11.1
  • Database: SQLite/PostgreSQL
  • Node Version:
  • NPM Version:
  • Yarn Version:

Hello :wave:
In the docs of the official GraphQL plugin it says “The generated GraphQL type and queries will be:”, but when I check the /api/*/config/ there is not a schema.graphql.js generated automatically.

Do I have to create it myself?

The reason of why I want to access that file is because I want to add a global policy to that endpoint, I’m supposed to create that file myself and add the policy or I’m missing something?

Thanks!

Update:
So I created the file myself, and only added the policy I wanted:

module.exports = {
  definition: ``,
  query: ``,
  type: {},
  resolver: {
    Query: {
      restClients: {
        description: "Return a single restaurant",
        policies: ["global::is-allowed-to-crud-restaurant"],
      },
    },
  },
};

Is it ok if I leave everything else empty?