Sha256: 34573398bf9a5d8b5871281d3102cb847737d8883c89368531c553aa570f8fa2

Contents?: true

Size: 909 Bytes

Versions: 9

Compression:

Stored size: 909 Bytes

Contents

require_relative 'option_sanitizers/array_checker'
require_relative 'option_sanitizers/hash_checker'
require_relative 'option_sanitizers/string_checker'
require_relative 'option_sanitizers/class_checker'

module GraphqlDevise
  module MountMethod
    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
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
graphql_devise-0.12.3 lib/graphql_devise/mount_method/supported_options.rb
graphql_devise-0.12.2 lib/graphql_devise/mount_method/supported_options.rb
graphql_devise-0.12.1 lib/graphql_devise/mount_method/supported_options.rb
graphql_devise-0.12.0 lib/graphql_devise/mount_method/supported_options.rb
graphql_devise-0.11.4 lib/graphql_devise/mount_method/supported_options.rb
graphql_devise-0.11.3 lib/graphql_devise/mount_method/supported_options.rb
graphql_devise-0.11.2 lib/graphql_devise/mount_method/supported_options.rb
graphql_devise-0.11.1 lib/graphql_devise/mount_method/supported_options.rb
graphql_devise-0.11.0 lib/graphql_devise/mount_method/supported_options.rb