in the file .graphqlrc.ts change
.graphqlrc.ts
module.exports = getConfig();
to
export default getConfig();
then in the Schemas and Project Structure tab click on the root icon and press Restart Schema discovery button.
Schemas and Project Structure
Restart Schema discovery