graphql-query-complexity icon indicating copy to clipboard operation
graphql-query-complexity copied to clipboard

Default non-defined graphql operations to have 0 complexity

Open BasKiers opened this issue 2 years ago • 0 comments

This fixes the TypeError: Cannot read properties of undefined (reading 'name') reported by #84 and #85.

Defaulting to 0 complexity seems reasonable as we cannot reason about fields for which we do not have a type definition.

BasKiers avatar Sep 19 '23 12:09 BasKiers