Sha256: e360618386ab024b413936ff1310edccd5349690e6b8a8f1adc8559151bd01e9

Contents?: true

Size: 597 Bytes

Versions: 7

Compression:

Stored size: 597 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,
          :resend_confirmation_with_token
        ]
      ),
      GraphqlDevise::ResourceLoader.new(Guest, only: [:logout]),
      GraphqlDevise::ResourceLoader.new(SchemaUser)
    ]
  )

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
graphql_devise-1.4.0 spec/dummy/app/graphql/dummy_schema.rb
graphql_devise-1.3.0 spec/dummy/app/graphql/dummy_schema.rb
graphql_devise-1.2.0 spec/dummy/app/graphql/dummy_schema.rb
graphql_devise-1.1.1 spec/dummy/app/graphql/dummy_schema.rb
graphql_devise-1.1.0 spec/dummy/app/graphql/dummy_schema.rb
graphql_devise-1.0.1 spec/dummy/app/graphql/dummy_schema.rb
graphql_devise-1.0.0 spec/dummy/app/graphql/dummy_schema.rb