graphql-query-complexity
graphql-query-complexity copied to clipboard
Default non-defined graphql operations to have 0 complexity
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.