Sha256: 1d4cbc7a918c51fe833429bca40fac49b4943cc0608d0f03aa0351a49874ea86

Contents?: true

Size: 242 Bytes

Versions: 8

Compression:

Stored size: 242 Bytes

Contents

# frozen_string_literal: true

module Types
  class CustomAdminType < BaseObject
    field :email,        String, null: false
    field :custom_field, String, null: false

    def custom_field
      "email: #{object.email}"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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