Module: GraphqlDevise::MountMethod

Defined in:
lib/graphql_devise/mount_method/option_sanitizer.rb,
lib/graphql_devise/mount_method/options_validator.rb,
lib/graphql_devise/mount_method/supported_options.rb,
lib/graphql_devise/mount_method/operation_preparer.rb,
lib/graphql_devise/mount_method/operation_sanitizer.rb,
lib/graphql_devise/mount_method/option_sanitizers/hash_checker.rb,
lib/graphql_devise/mount_method/option_sanitizers/array_checker.rb,
lib/graphql_devise/mount_method/option_sanitizers/class_checker.rb,
lib/graphql_devise/mount_method/option_sanitizers/string_checker.rb,
lib/graphql_devise/mount_method/operation_preparers/gql_name_setter.rb,
lib/graphql_devise/mount_method/option_validators/skip_only_validator.rb,
lib/graphql_devise/mount_method/operation_preparers/resolver_type_setter.rb,
lib/graphql_devise/mount_method/operation_preparers/mutation_field_setter.rb,
lib/graphql_devise/mount_method/operation_preparers/resource_klass_setter.rb,
lib/graphql_devise/mount_method/operation_preparers/custom_operation_preparer.rb,
lib/graphql_devise/mount_method/operation_preparers/default_operation_preparer.rb,
lib/graphql_devise/mount_method/option_validators/provided_operations_validator.rb,
lib/graphql_devise/mount_method/option_validators/supported_operations_validator.rb

Defined Under Namespace

Modules: OperationPreparers, OptionSanitizers, OptionValidators Classes: OperationPreparer, OperationSanitizer, OptionSanitizer, OptionsValidator

Constant Summary collapse

SUPPORTED_OPTIONS =
{
  at:                   OptionSanitizers::StringChecker.new('/graphql_auth'),
  operations:           OptionSanitizers::HashChecker.new([GraphQL::Schema::Resolver, GraphQL::Schema::Mutation]),
  only:                 OptionSanitizers::ArrayChecker.new(Symbol),
  skip:                 OptionSanitizers::ArrayChecker.new(Symbol),
  additional_queries:   OptionSanitizers::HashChecker.new(GraphQL::Schema::Resolver),
  additional_mutations: OptionSanitizers::HashChecker.new(GraphQL::Schema::Mutation),
  authenticatable_type: OptionSanitizers::ClassChecker.new(GraphQL::Schema::Member)
}.freeze