Skip to content

Commit f4c8d45

Browse files
milosdanilovJames Baxley
authored andcommitted
Allow --no-addTypename (#758)
1 parent c4ccd53 commit f4c8d45

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/apollo/src/commands/client/codegen.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ export default class Generate extends ClientCommand {
4646
"Path to your local GraphQL schema file (introspection result or SDL)"
4747
}),
4848
addTypename: flags.boolean({
49-
description: "Automatically add __typename to your queries",
50-
default: true
49+
description:
50+
"[default: true] Automatically add __typename to your queries, can be unset with --no-addTypename",
51+
default: true,
52+
allowNo: true
5153
}),
5254
passthroughCustomScalars: flags.boolean({
5355
description: "Use your own types for custom scalars"

0 commit comments

Comments
 (0)