Sha256: 1c2971a6c2a81a81edb736d07bec7f3d68e704045212baa102c994c1b996d032
Contents?: true
Size: 507 Bytes
Versions: 24
Compression:
Stored size: 507 Bytes
Contents
# frozen_string_literal: true module GraphQL module Analysis class MaxQueryDepth < QueryDepth def result configured_max_depth = if query query.max_depth else multiplex.schema.max_depth end if configured_max_depth && @max_depth > configured_max_depth GraphQL::AnalysisError.new("Query has depth of #{@max_depth}, which exceeds max depth of #{configured_max_depth}") else nil end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems