graphql-kit / graphql-faker

🎲 Mock or extend your GraphQL API with faked data. No coding required.
MIT License
2.69k stars 225 forks source link

Cannot extend to external API #122

Closed nprizal closed 4 years ago

nprizal commented 4 years ago

I am having an issue when extending to external API after this updates https://github.com/APIs-guru/graphql-faker/commit/269cacc350862dc905c7f27869f8d9ed4e63b6c4

Following is the error log

ERROR TypeError: Cannot set property 'isExtensionField' of undefined at Object.buildWithFakeDefinitions (/Users/naufanrizal/workspace/graphql-faker/src/fake_definition.ts:274:56) at runServer (/Users/naufanrizal/workspace/graphql-faker/src/index.ts:98:9) at utils_1.getRemoteSchema.then (/Users/naufanrizal/workspace/graphql-faker/src/index.ts:62:9) at processTicksAndRejections (internal/process/task_queues.js:86:5)