[英]graphql codegen typescript - how to generate types only
I'm using the typescript plugin for graphql code generator 我正在为graphql代码生成器使用打字稿插件
According to the doc 根据文档
This is the most basic TypeScript plugin and it can generate typings based on GraphQLSchema, which can be used by any other typescript related plugin.
这是最基本的TypeScript插件,它可以基于GraphQLSchema生成类型,任何其他与Typescript相关的插件都可以使用它。
It generates types for your entire schema: types, input types, enums, interfaces, scalars and unions.
它为整个架构生成类型:类型,输入类型,枚举,接口,标量和联合。
Is it possible to generate only types? 是否可以仅生成类型? I couldn't find anything in the docs.
我在文档中找不到任何内容。
You could say that all of the items mentioned (types, input types, enums, interfaces, scalars and unions)
are types. 您可以说所有提到的项目
(types, input types, enums, interfaces, scalars and unions)
都是类型。 If you need to generate only one of these items, unfortunately the typescript plugin currently does not support this. 如果您只需要生成其中一项,那么不幸的是,typescript插件当前不支持此功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.