Apollo-tooling: Support client-side schema once again

Created on 21 Nov 2018  ·  2Comments  ·  Source: apollographql/apollo-tooling

In [email protected] I'm receiving

Unexpected argument: --clientSchema=src/config/schema.graphql`

While trying apollo client:codegen __generated --target typescript --clientSchema=src/config/schema.graphql

It seems like the commit d2d73f9c597845355b7ee267e411d80d1c493043 removed the support for client-side schemas on the _client:codegen_ functionality. The arguments to add client schema have been removed.

Is there any intention in supporting it again?

Most helpful comment

This is so frustrating. Why is Apollo so intent on violating semver? Almost every time I update a patch or minor version of some apollo package, I have to go figure out what broke.

The changes are typically great – just bump the major version! And maybe mention breaking changes in the changelog. 🙏🏼

All 2 comments

Well, apparently the _codegen_ automatically finds local .graphql files and includes them into the schema without the need of declaring them.

I just declared a local.graphql and included the extension that I needed and everything worked fine

This is so frustrating. Why is Apollo so intent on violating semver? Almost every time I update a patch or minor version of some apollo package, I have to go figure out what broke.

The changes are typically great – just bump the major version! And maybe mention breaking changes in the changelog. 🙏🏼

Was this page helpful?
0 / 5 - 0 ratings

Related issues

viridia picture viridia  ·  3Comments

fenech picture fenech  ·  3Comments

u-ashish picture u-ashish  ·  4Comments

hashlin picture hashlin  ·  4Comments

clayne11 picture clayne11  ·  3Comments