graphql-cli-codegen icon indicating copy to clipboard operation
graphql-cli-codegen copied to clipboard

Reduce of empty array with no initial value

Open felixfbecker opened this issue 7 years ago • 0 comments

When I run graphql codegen, I only get the error

Reduce of empty array with no initial value

Adding an empty array as the initial value here fixes it: https://github.com/rricard/graphql-cli-codegen/blob/7a7bba9fc5a2a338f2f87243e82c90551e6132b0/src/codegen.ts#L47

felixfbecker avatar Aug 24 '17 18:08 felixfbecker