Sha256: a208f2d647f3af3e16f7cdfeba8e4cae468bb54286a9aacf1ec7c97563bfc7b4
Contents?: true
Size: 558 Bytes
Versions: 151
Compression:
Stored size: 558 Bytes
Contents
# frozen_string_literal: true module GraphQL module Analysis module AST 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 end
Version data entries
151 entries across 151 versions & 2 rubygems