You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mergeInFieldsFromFragmentSpreads is on by default. The command line option allows you to only turn it on. There is no way turn it off.
mergeInFieldsFromFragmentSpreads is implemented as an oclif boolean flag so alternatives like apollo client:codegen --mergeInFieldsFromFragmentSpreads=false don't work.
There is an older issue: #537 where the meaning of the flag was inverted but this was not done everywhere.
mergeInFieldsFromFragmentSpreads
is on by default. The command line option allows you to only turn it on. There is no way turn it off.mergeInFieldsFromFragmentSpreads
is implemented as an oclif boolean flag so alternatives likeapollo client:codegen --mergeInFieldsFromFragmentSpreads=false
don't work.There is an older issue: #537 where the meaning of the flag was inverted but this was not done everywhere.
Potentially the fix is as simple as changing this line: https://github.com/apollographql/apollo-tooling/blob/master/packages/apollo/src/commands/client/codegen.ts#L235
From
flags.mergeInFieldsFromFragmentSpreads
to!!flags.mergeInFieldsFromFragmentSpreads
It might also be necessary to update the docs.
The text was updated successfully, but these errors were encountered: