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
When passed in an --operation-ids-path, apollo-codegen should generate a file mapping between operation ids and operation sources (including dependent fragments). This functionality was added as part of #147.
This functionality is now broken. Running apollo-codegen with the --operation-ids-path argument yields TypeError: path must be a string or Buffer.
There are two problems, as far as I can tell. In writeOperationIdsMap in generate.ts:
context no longer contains operationIdsPath
Each operation in context.operations no longer contains operationId or sourceWithFragments
My guess is that this broke as a result of the changes in #228.
The text was updated successfully, but these errors were encountered:
kompfner
changed the title
operation-ids-path option is brokenoperation-ids-path option is broken (Swift)
Oct 25, 2017
I'm sorry the compiler rewrite broke the --operation-ids-path feature, but since you are the only one using it, and you know what is needed, could you open a PR to fix this?
When passed in an
--operation-ids-path
,apollo-codegen
should generate a file mapping between operation ids and operation sources (including dependent fragments). This functionality was added as part of #147.This functionality is now broken. Running
apollo-codegen
with the--operation-ids-path
argument yieldsTypeError: path must be a string or Buffer
.There are two problems, as far as I can tell. In
writeOperationIdsMap
ingenerate.ts
:context
no longer containsoperationIdsPath
context.operations
no longer containsoperationId
orsourceWithFragments
My guess is that this broke as a result of the changes in #228.
The text was updated successfully, but these errors were encountered: