Strapi 没有在 GraphQL 上显示两种内容类型

Strapi isn't showing both Content Types on GraphQL

上下文:我正在使用 Strapi+Gatsby 构建一个基本博客,关注 this tutorial

问题:我创建了内容类型 'Category''Post'(称为 'Article' 在教程中),'Post' 有一个关系字段来关联两种内容类型('Category'有很多'Posts')。当试图通过 graphQL (localhost:xxxx/___graphql) 访问这些内容类型时,我看不到 'Categories',我只看 'Posts'.

我想像查询 'Post':

一样查询 'Category'

而且我注意到 'Post' 有一个名为 'Category' 的组件,因为关系字段.

知道为什么 'Category' 没有显示吗?

要显示两种内容类型,它们都必须在插件配置中指明[新手错误,抱歉这个问题]:

resolve: "gatsby-source-strapi",
options: {     
    apiUrl: process.env.API_URL,
    contentTypes: ["category", "article"],
    queryLimit: 1000,
}