Sha256: d5f16199068f4b79ca947f1477fb76471a451e85b7c6c144ff5f7702308df2c9

Contents?: true

Size: 722 Bytes

Versions: 5

Compression:

Stored size: 722 Bytes

Contents

# frozen_string_literal: true

class DummySchema < GraphQL::Schema
  use GraphqlDevise::SchemaPlugin.new(
    query:                Types::QueryType,
    mutation:             Types::MutationType,
    public_introspection: true,
    resource_loaders:     [
      GraphqlDevise::ResourceLoader.new(
        User,
        only: [
          :login,
          :confirm_account,
          :send_password_reset,
          :resend_confirmation,
          :resend_confirmation_with_token,
          :check_password_token
        ]
      ),
      GraphqlDevise::ResourceLoader.new(Guest, only: [:logout]),
      GraphqlDevise::ResourceLoader.new(SchemaUser)
    ]
  )

  mutation(Types::MutationType)
  query(Types::QueryType)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
graphql_devise-0.18.2 spec/dummy/app/graphql/dummy_schema.rb
graphql_devise-0.18.1 spec/dummy/app/graphql/dummy_schema.rb
graphql_devise-0.18.0 spec/dummy/app/graphql/dummy_schema.rb
graphql_devise-0.17.1 spec/dummy/app/graphql/dummy_schema.rb
graphql_devise-0.17.0 spec/dummy/app/graphql/dummy_schema.rb