Apollo-tooling: codegen: output warning if query type generation is suppressed because of naming conflict

Created on 21 Jul 2019  ·  2Comments  ·  Source: apollographql/apollo-tooling

As mentioned in #670, apollo codegen requires query names to be unique for a project when generating types. If two queries have the same name, type generation for the second query will be silently skipped.

This behavior is unexpected. It would be very helpful is apollo codegen output a console warning, including a filepath, whenever this occurs.

✔ confirmed 🐞 bug 🤖 codegen

Most helpful comment

Hey @thefliik, I'd like to see if I can add a warning to this. Can you provide me with a simple reproduction repo that's affected by this to save me some time?

All 2 comments

Hey @thefliik, I'd like to see if I can add a warning to this. Can you provide me with a simple reproduction repo that's affected by this to save me some time?

@JakeDawkins here you go: https://github.com/thefliik/apollo-tooling-issue

I left some simple reproduction steps in the repo's readme

Was this page helpful?
0 / 5 - 0 ratings