Open Collective
Open Collective
Loading
Bring GraphQL typegen to the GatsbyJS core
Published on May 3, 2022 by Hyeseong Kim

Hi, I have a good news and a bad news.

The bad news is I haven't shipped the v3 release I promised yet. But I hope you already gave a try in the rc version.

I've assigned my production work this week and if there are no issues, the official version will be out next week.

And the good news!

Me and Gatsby core team have finally started to ship typegen features into the GatsbyJS core!!

It can already be enabled with the `GRAPHQL_TYPEGEN` flag in gatsby@next.

// gatsby-config.js
module.exports = {
  flags: {
    GRAPHQL_TYPEGEN: true,
  },
};

The features was migrated from the gatsby-plugin-typegen@rc code and modified slightly.

You can see the progress in the milestone and discussion.