Closed
Description
Describe the bug
Comments from the schema are gone in the generated code.
To Reproduce
Steps to reproduce the behavior:
- My GraphQL schema:
type Query {
# A name!
name: String!
}
- My GraphQL operations:
# none
- My
codegen.yml
config file:
generates:
./gqltypes.ts:
schema: ./schema.graphql
plugins:
- 'typescript'
Expected behavior
1.13.1 generates comments
export type Maybe<T> = T | null;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
String: string;
Boolean: boolean;
Int: number;
Float: number;
};
export type Query = {
__typename?: 'Query';
/** A name! */
name: Scalars['String'];
};
1.13.2 does not
diff --git i/gqltypes.ts w/gqltypes.ts
index 41d3dfebf..3172daf0e 100644
--- i/gqltypes.ts
+++ w/gqltypes.ts
@@ -10,6 +10,5 @@ export type Scalars = {
export type Query = {
__typename?: 'Query';
- /** A name! */
name: Scalars['String'];
};
Environment:
- OS: macOS
@graphql-codegen/...
: 1.13.2- NodeJS: 12.16.1
Additional context