• Jan Provaznik's avatar
    Fix graphql resolver complexity · 2c42884c
    Jan Provaznik authored
    Since 1.9 graphql always sets complexity for resolvers, which
    caused that our default resolver complexity proc wasn't used.
    
    Unless complexity is set explicitly then graphql now uses complexity
    `1`. To avoid this behavior, we use `complexity` method to set
    complexity to `0`, then when instantiating a field we use our
    default complexity proc if complexity is `0`.
    2c42884c
base_resolver.rb 1.57 KB