class GraphQL::Authorization::InaccessibleFieldsError
Attributes
context[R]
@return [GraphQL::Query::Context] The current query's context
fields[R]
@return [Array<Schema::Field, GraphQL::Field>] Fields that failed `.accessible?` checks
irep_nodes[R]
@return [Array<GraphQL::InternalRepresentation::Node>] The visited nodes that failed `.accessible?` checks @see {#fields} for the Field
definitions
Public Class Methods
new(fields:, irep_nodes:, context:)
click to toggle source
Calls superclass method
GraphQL::ExecutionError::new
# File lib/graphql/authorization.rb, line 15 def initialize(fields:, irep_nodes:, context:) @fields = fields @irep_nodes = irep_nodes @context = context super("Some fields in this query are not accessible: #{fields.map(&:graphql_name).join(", ")}") end