Sha256: 1c6c27a6254ca8a58c2b5df7b7991376bb29f4829044e9a2cd44402b1b871a6f

Contents?: true

Size: 232 Bytes

Versions: 25

Compression:

Stored size: 232 Bytes

Contents

# frozen_string_literal: true

module Resolvers
  class PublicUser < GraphQL::Schema::Resolver
    type Types::UserType, null: false

    argument :id, Int, required: true

    def resolve(id:)
      User.find(id)
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
graphql_devise-1.4.0 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-1.3.0 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-1.2.0 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-1.1.1 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-1.1.0 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-1.0.1 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-1.0.0 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.18.2 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.18.1 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.18.0 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.17.1 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.17.0 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.16.0 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.15.0 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.14.3 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.14.2 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.14.1 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.14.0 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.13.6 spec/dummy/app/graphql/resolvers/public_user.rb
graphql_devise-0.13.5 spec/dummy/app/graphql/resolvers/public_user.rb