Skip to content

--no-addTypename does not work #680

@artemave

Description

@artemave
$ yarn apollo client:codegen src --target=typescript --no-addTypename
$ /Users/artem/projects/inlens-web/node_modules/.bin/apollo client:codegen src --target=typescript --no-addTypename
 ›   Error: Unexpected argument: --no-addTypename

Looking at the code, the reason appears to be that addTypename flag declaration is missing allowNo: true option (or should not default to true):

image

https://github.com/apollographql/apollo-tooling/blob/master/packages/apollo/src/commands/client/codegen.ts#L47,L50

npm module version: 2.0.9

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions