Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apollo client:codegen --namespace is not working for TypeScript #1204

Open
Fonger opened this issue Apr 22, 2019 · 2 comments
Open

apollo client:codegen --namespace is not working for TypeScript #1204

Fonger opened this issue Apr 22, 2019 · 2 comments
Labels
🤖 component - codegen related to the codegen core packages

Comments

@Fonger
Copy link

Fonger commented Apr 22, 2019

Intended outcome:
The generated type definition should be wrapped in the given namespace.

Actual outcome:
The generated file is not wrapped in the namespace.

How to reproduce the issue:

apollo client:codegen --namespace=MyGQL --addTypename --passthroughCustomScalars --customScalarsPrefix Scalar --outputFlat --target=typescript ./graphql/types.ts

All of the definition is not wrapped in MyGQL namespace.

Versions

apollo/2.8.3 linux-x64 node-v10.15.3

@JakeDawkins JakeDawkins added the 🤖 component - codegen related to the codegen core packages label Apr 26, 2019
@manjunath-satyamurthy
Copy link

seems like namespace is only supported for "swift" for now !!

@anwk
Copy link

anwk commented Dec 18, 2019

Any activities on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 component - codegen related to the codegen core packages
Projects
None yet
Development

No branches or pull requests

4 participants